diff options
author | Mashiat Sarker Shakkhar <mashiat.sarker@gmail.com> | 2012-04-13 14:00:20 -0700 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-04-14 16:02:22 +0200 |
commit | 9900dd2d9c9b0612f72279180fcc280ad5564357 (patch) | |
tree | 164edea677865db161831b7028d1d2ebb91767eb /libavcodec | |
parent | 07933b44dd72cdc5df34a66991cc0f0386614720 (diff) | |
download | ffmpeg-9900dd2d9c9b0612f72279180fcc280ad5564357.tar.gz |
wmal: Skip seekable_frame_in_packet.
There is no point in storing the value in a variable, since it is not
used anywhere else in the decoder.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/wmalosslessdec.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c index e86cf6004e..46655db7ab 100644 --- a/libavcodec/wmalosslessdec.c +++ b/libavcodec/wmalosslessdec.c @@ -1164,8 +1164,7 @@ static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr, GetBitContext* gb = &s->pgb; const uint8_t* buf = avpkt->data; int buf_size = avpkt->size; - int num_bits_prev_frame, packet_sequence_number, - seekable_frame_in_packet, spliced_packet; + int num_bits_prev_frame, packet_sequence_number, spliced_packet; if (s->packet_done || s->packet_loss) { s->packet_done = 0; @@ -1181,7 +1180,7 @@ static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr, /* parse packet header */ init_get_bits(gb, buf, s->buf_bit_size); packet_sequence_number = get_bits(gb, 4); - seekable_frame_in_packet = get_bits1(gb); + skip_bits(gb, 1); // Skip seekable_frame_in_packet, currently ununused spliced_packet = get_bits1(gb); /* get number of bits that need to be added to the previous frame */ |