aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2015-01-18 12:31:11 +0100
committerAnton Khirnov <anton@khirnov.net>2015-01-27 09:09:29 +0100
commitecab21ac47d0d4ca604bebf494017ae5090853a8 (patch)
treeed1e7197cc16e9c2b474e840a3c1244b38263f30 /libavcodec/h264.c
parent9404a47a2d1df418946a338938eb6cdb3afed474 (diff)
downloadffmpeg-ecab21ac47d0d4ca604bebf494017ae5090853a8.tar.gz
h264: do not reset the ref lists in flush_change()
They are always constructed anew when needed, so there is no need to reset them explicitly.
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 593a23df7c..2aea35e09d 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1057,10 +1057,6 @@ void ff_h264_flush_change(H264Context *h)
if (h->cur_pic_ptr)
h->cur_pic_ptr->reference = 0;
h->first_field = 0;
- memset(h->ref_list[0], 0, sizeof(h->ref_list[0]));
- memset(h->ref_list[1], 0, sizeof(h->ref_list[1]));
- memset(h->default_ref_list[0], 0, sizeof(h->default_ref_list[0]));
- memset(h->default_ref_list[1], 0, sizeof(h->default_ref_list[1]));
ff_h264_reset_sei(h);
h->recovery_frame = -1;
h->frame_recovered = 0;