Commit ecab21ac authored by Anton Khirnov's avatar Anton Khirnov

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.
parent 9404a47a
...@@ -1057,10 +1057,6 @@ void ff_h264_flush_change(H264Context *h) ...@@ -1057,10 +1057,6 @@ void ff_h264_flush_change(H264Context *h)
if (h->cur_pic_ptr) if (h->cur_pic_ptr)
h->cur_pic_ptr->reference = 0; h->cur_pic_ptr->reference = 0;
h->first_field = 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); ff_h264_reset_sei(h);
h->recovery_frame = -1; h->recovery_frame = -1;
h->frame_recovered = 0; h->frame_recovered = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment