diff options
author | James Almer <jamrial@gmail.com> | 2017-04-29 22:01:03 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-05-05 17:30:35 -0300 |
commit | c4b08c8a4e54b752641d0792d9a73e16e62a0bbc (patch) | |
tree | 58145bd7ee6aea2d76ed1daf87d2c188e0007071 /libavcodec/hevc_refs.c | |
parent | f52fbf4f3ed02a7d872d8a102006f29b4421f360 (diff) |
avcodec/hevcdec: remove HEVCContext usage from hevc_sei
Based on the H264 SEI implementation.
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Reviewed-by: Aaron Levinson <alevinsn@aracnet.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/hevc_refs.c')
-rw-r--r-- | libavcodec/hevc_refs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/hevc_refs.c b/libavcodec/hevc_refs.c index 9103c84686..6810ffaf17 100644 --- a/libavcodec/hevc_refs.c +++ b/libavcodec/hevc_refs.c @@ -109,8 +109,8 @@ static HEVCFrame *alloc_frame(HEVCContext *s) for (j = 0; j < frame->ctb_count; j++) frame->rpl_tab[j] = (RefPicListTab *)frame->rpl_buf->data; - frame->frame->top_field_first = s->picture_struct == AV_PICTURE_STRUCTURE_TOP_FIELD; - frame->frame->interlaced_frame = (s->picture_struct == AV_PICTURE_STRUCTURE_TOP_FIELD) || (s->picture_struct == AV_PICTURE_STRUCTURE_BOTTOM_FIELD); + frame->frame->top_field_first = s->sei.picture_timing.picture_struct == AV_PICTURE_STRUCTURE_TOP_FIELD; + frame->frame->interlaced_frame = (s->sei.picture_timing.picture_struct == AV_PICTURE_STRUCTURE_TOP_FIELD) || (s->sei.picture_timing.picture_struct == AV_PICTURE_STRUCTURE_BOTTOM_FIELD); if (s->avctx->hwaccel) { const AVHWAccel *hwaccel = s->avctx->hwaccel; |