diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-12-01 15:57:47 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-12-05 16:28:05 +0400 |
commit | 66499f34b56fc6a9fdef25543bd9d576fc787895 (patch) | |
tree | 864eab5f8a25da56ef1d735aebb8b166a8c852f4 /libavcodec/mss2.c | |
parent | 58a868968df445068a143f327ced03b6a02baf0d (diff) |
mpegvideo: do not set current_picture_ptr in decoders
This code was originally added in
5f1948111a4920ff74e31b4284ab0200f7938539 to h263 to set decoded frame
pts to some random numbers (removed in
a1c5cc429d99216406170eac7e8352860076d3e8) and then cargo culted to other
decoders.
The code is left in h263dec for now, since some part of the decoder
(apparently OBMC) relies on the specific previous frame to be reused.
Diffstat (limited to 'libavcodec/mss2.c')
-rw-r--r-- | libavcodec/mss2.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libavcodec/mss2.c b/libavcodec/mss2.c index d219b67d33..3fe86203aa 100644 --- a/libavcodec/mss2.c +++ b/libavcodec/mss2.c @@ -377,13 +377,6 @@ static int decode_wmv9(AVCodecContext *avctx, const uint8_t *buf, int buf_size, ff_mpeg_flush(avctx); - if (s->current_picture_ptr == NULL || s->current_picture_ptr->f.data[0]) { - int i = ff_find_unused_picture(s, 0); - if (i < 0) - return i; - s->current_picture_ptr = &s->picture[i]; - } - init_get_bits(&s->gb, buf, buf_size * 8); s->loop_filter = avctx->skip_loop_filter < AVDISCARD_ALL; |