diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-02-28 11:31:56 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-03-16 23:01:00 +0100 |
commit | d66e305bd1b4f3e91ae4e7e549148509d0811672 (patch) | |
tree | 0c2d149ae94922d03c098d08e938d3f64ee01bb9 /libavcodec/h264.c | |
parent | 1c79b1625d4d257bfd01eccb84cc0ab355fb9a9e (diff) | |
download | ffmpeg-d66e305bd1b4f3e91ae4e7e549148509d0811672.tar.gz |
er: move relevant fields from Picture to ERPicture
This is done to disentangle ER from mpegvideo. In order to use a
classic Picture, callers can use ff_mpeg_set_erpic() or use a custom function
to set the fields. Please note that buffers need to be allocated before
calling ff_er_frame_end().
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 1ce772fa3f..a6724846cc 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -2974,9 +2974,11 @@ static int field_end(H264Context *h, int in_setup) * causes problems for the first MB line, too. */ if (CONFIG_ERROR_RESILIENCE && !FIELD_PICTURE(h)) { - h->er.cur_pic = h->cur_pic_ptr; - h->er.last_pic = h->ref_count[0] ? &h->ref_list[0][0] : NULL; - h->er.next_pic = h->ref_count[1] ? &h->ref_list[1][0] : NULL; + ff_mpeg_set_erpic(&h->er.cur_pic, h->cur_pic_ptr); + ff_mpeg_set_erpic(&h->er.last_pic, + h->ref_count[0] ? &h->ref_list[0][0] : NULL); + ff_mpeg_set_erpic(&h->er.next_pic, + h->ref_count[1] ? &h->ref_list[1][0] : NULL); ff_er_frame_end(&h->er); } emms_c(); |