changeset 31865:4de0d902ffb9

Avoid redundant use of variable 'size' in demux_ogg_read_packet(), fixes: libmpdemux/demux_ogg.c:266: warning: unused variable 'size'
author diego
date Sat, 07 Aug 2010 19:58:30 +0000
parents d277ede2b207
children 89ba6df5d766
files libmpdemux/demux_ogg.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;