diff options
Diffstat (limited to 'libavcodec/h261dec.c')
-rw-r--r-- | libavcodec/h261dec.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c index 241099eeff..49f1b4a199 100644 --- a/libavcodec/h261dec.c +++ b/libavcodec/h261dec.c @@ -586,15 +586,6 @@ retry: if (ff_MPV_common_init(s) < 0) return -1; - /* We need to set current_picture_ptr before reading the header, - * otherwise we cannot store anything in there. */ - 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]; - } - ret = h261_decode_picture_header(h); /* skip if the header was thrashed */ |