[MPlayer-cvslog] r31946 - trunk/libmpdemux/demux_ogg.c
diego
subversion at mplayerhq.hu
Sat Aug 7 21:58:30 CEST 2010
Author: diego
Date: Sat Aug 7 21:58:30 2010
New Revision: 31946
Log:
Avoid redundant use of variable 'size' in demux_ogg_read_packet(), fixes:
libmpdemux/demux_ogg.c:266: warning: unused variable 'size'
Modified:
trunk/libmpdemux/demux_ogg.c
Modified: trunk/libmpdemux/demux_ogg.c
==============================================================================
--- trunk/libmpdemux/demux_ogg.c Sat Aug 7 21:35:57 2010 (r31945)
+++ trunk/libmpdemux/demux_ogg.c Sat Aug 7 21:58:30 2010 (r31946)
@@ -263,7 +263,6 @@ static unsigned char *demux_ogg_read_pac
int samplesize)
{
unsigned char *data = pack->packet;
- int size = pack->bytes;
*pts = MP_NOPTS_VALUE;
*flags = 0;
@@ -301,7 +300,7 @@ static unsigned char *demux_ogg_read_pac
/* header packets begin on 1-bit: thus check (*data&0x80). We don't
have theora_state st, until all header packets were passed to the
decoder. */
- if (!size || !(*data&0x80)) {
+ if (!pack->bytes || !(*data&0x80)) {
int keyframe_granule_shift = _ilog(os->keyframe_frequency_force - 1);
int64_t iframemask = (1 << keyframe_granule_shift) - 1;
More information about the MPlayer-cvslog
mailing list