From 31f61b0d4f8d452becb44f044c739f9057900159 Mon Sep 17 00:00:00 2001 From: Muhammad Faiz Date: Sat, 22 Apr 2017 15:54:58 +0700 Subject: avcodec: do not use AVFrame accessor Reviewed-by: wm4 Signed-off-by: Muhammad Faiz --- libavcodec/rawdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/rawdec.c') diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c index 6dcb5f2e66..1893b26444 100644 --- a/libavcodec/rawdec.c +++ b/libavcodec/rawdec.c @@ -237,8 +237,8 @@ static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame, if (res < 0) return res; - av_frame_set_pkt_pos (frame, avctx->internal->last_pkt_props->pos); - av_frame_set_pkt_duration(frame, avctx->internal->last_pkt_props->duration); + frame->pkt_pos = avctx->internal->last_pkt_props->pos; + frame->pkt_duration = avctx->internal->last_pkt_props->duration; if (context->tff >= 0) { frame->interlaced_frame = 1; -- cgit v1.2.1