[vlc-commits] packetizers: do not rename variable
Rafaël Carré
git at videolan.org
Tue Feb 11 07:57:29 CET 2014
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Feb 11 07:56:36 2014 +0100| [323d078ca23954c9b78f68b2ff67cfe2440ab356] | committer: Rafaël Carré
packetizers: do not rename variable
Use the same name than PacketizeParse
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=323d078ca23954c9b78f68b2ff67cfe2440ab356
---
modules/packetizer/h264.c | 8 ++++----
modules/packetizer/vc1.c | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index a8193a7..01fab3d 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -165,7 +165,7 @@ static void PacketizeReset( void *p_private, bool b_broken );
static block_t *PacketizeParse( void *p_private, bool *pb_ts_used, block_t * );
static int PacketizeValidate( void *p_private, block_t * );
-static block_t *ParseNALBlock( decoder_t *, bool *pb_used_ts, block_t * );
+static block_t *ParseNALBlock( decoder_t *, bool *pb_ts_used, block_t * );
static block_t *CreateAnnexbNAL( decoder_t *, const uint8_t *p, int );
static block_t *OutputPicture( decoder_t *p_dec );
@@ -603,7 +603,7 @@ static inline int bs_read_se( bs_t *s )
* ParseNALBlock: parses annexB type NALs
* All p_frag blocks are required to start with 0 0 0 1 4-byte startcode
*****************************************************************************/
-static block_t *ParseNALBlock( decoder_t *p_dec, bool *pb_used_ts, block_t *p_frag )
+static block_t *ParseNALBlock( decoder_t *p_dec, bool *pb_ts_used, block_t *p_frag )
{
decoder_sys_t *p_sys = p_dec->p_sys;
block_t *p_pic = NULL;
@@ -700,13 +700,13 @@ static block_t *ParseNALBlock( decoder_t *p_dec, bool *pb_used_ts, block_t *p_fr
if( p_frag )
block_ChainAppend( &p_sys->p_frame, p_frag );
- *pb_used_ts = false;
+ *pb_ts_used = false;
if( p_sys->i_frame_dts <= VLC_TS_INVALID &&
p_sys->i_frame_pts <= VLC_TS_INVALID )
{
p_sys->i_frame_dts = i_frag_dts;
p_sys->i_frame_pts = i_frag_pts;
- *pb_used_ts = true;
+ *pb_ts_used = true;
}
return p_pic;
}
diff --git a/modules/packetizer/vc1.c b/modules/packetizer/vc1.c
index da7ce5f..c1ddd64 100644
--- a/modules/packetizer/vc1.c
+++ b/modules/packetizer/vc1.c
@@ -116,7 +116,7 @@ static void PacketizeReset( void *p_private, bool b_broken );
static block_t *PacketizeParse( void *p_private, bool *pb_ts_used, block_t * );
static int PacketizeValidate( void *p_private, block_t * );
-static block_t *ParseIDU( decoder_t *p_dec, bool *pb_used_ts, block_t *p_frag );
+static block_t *ParseIDU( decoder_t *p_dec, bool *pb_ts_used, block_t *p_frag );
static const uint8_t p_vc1_startcode[3] = { 0x00, 0x00, 0x01 };
/*****************************************************************************
@@ -319,13 +319,13 @@ static void BuildExtraData( decoder_t *p_dec )
p_sys->ep.p_ep->p_buffer, p_sys->ep.p_ep->i_buffer );
}
/* ParseIDU: parse an Independent Decoding Unit */
-static block_t *ParseIDU( decoder_t *p_dec, bool *pb_used_ts, block_t *p_frag )
+static block_t *ParseIDU( decoder_t *p_dec, bool *pb_ts_used, block_t *p_frag )
{
decoder_sys_t *p_sys = p_dec->p_sys;
block_t *p_pic;
const idu_type_t idu = p_frag->p_buffer[3];
- *pb_used_ts = false;
+ *pb_ts_used = false;
if( !p_sys->b_sequence_header && idu != IDU_TYPE_SEQUENCE_HEADER )
{
msg_Warn( p_dec, "waiting for sequence header" );
@@ -406,7 +406,7 @@ static block_t *ParseIDU( decoder_t *p_dec, bool *pb_used_ts, block_t *p_frag )
{
p_sys->i_frame_dts = p_frag->i_dts;
p_sys->i_frame_pts = p_frag->i_pts;
- *pb_used_ts = true;
+ *pb_ts_used = true;
}
/* We will add back SH and EP on I frames */
More information about the vlc-commits
mailing list