# HG changeset patch # User diego # Date 1281211110 0 # Node ID 4de0d902ffb9d358fd8d6884fc77df72b004e52c # Parent d277ede2b20755b4e413669c1d0582863280fbf5 Avoid redundant use of variable 'size' in demux_ogg_read_packet(), fixes: libmpdemux/demux_ogg.c:266: warning: unused variable 'size' diff -r d277ede2b207 -r 4de0d902ffb9 libmpdemux/demux_ogg.c --- a/libmpdemux/demux_ogg.c Sat Aug 07 19:35:57 2010 +0000 +++ b/libmpdemux/demux_ogg.c Sat Aug 07 19:58:30 2010 +0000 @@ -263,7 +263,6 @@ int samplesize) { unsigned char *data = pack->packet; - int size = pack->bytes; *pts = MP_NOPTS_VALUE; *flags = 0; @@ -301,7 +300,7 @@ /* 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;