diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-01-29 08:42:14 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-03-21 11:27:16 +0100 |
commit | a12d3188cbec15e22070e139fa5cc541da07e2c3 (patch) | |
tree | d3fc06fc85319a761832f32fcbb811af9a1e8de2 /libavcodec/h264_picture.c | |
parent | 94295106d20b32666a8c4e0d028ef79b9d3f3b7a (diff) | |
download | ffmpeg-a12d3188cbec15e22070e139fa5cc541da07e2c3.tar.gz |
h264: use a smaller struct for the ref lists
There is no need to store a whole H264Picture, with a full AVFrame
embedded in it. This should allow getting rid of the embedded AVFrame
later.
Diffstat (limited to 'libavcodec/h264_picture.c')
-rw-r--r-- | libavcodec/h264_picture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264_picture.c b/libavcodec/h264_picture.c index 7217f7f953..5792f77c7c 100644 --- a/libavcodec/h264_picture.c +++ b/libavcodec/h264_picture.c @@ -187,9 +187,9 @@ int ff_h264_field_end(H264Context *h, H264SliceContext *sl, int in_setup) if (!FIELD_PICTURE(h)) { h264_set_erpic(&sl->er.cur_pic, h->cur_pic_ptr); h264_set_erpic(&sl->er.last_pic, - sl->ref_count[0] ? &sl->ref_list[0][0] : NULL); + sl->ref_count[0] ? sl->ref_list[0][0].parent : NULL); h264_set_erpic(&sl->er.next_pic, - sl->ref_count[1] ? &sl->ref_list[1][0] : NULL); + sl->ref_count[1] ? sl->ref_list[1][0].parent : NULL); ff_er_frame_end(&sl->er); } #endif /* CONFIG_ERROR_RESILIENCE */ |