summaryrefslogtreecommitdiff
path: root/libavcodec/rawdec.c
diff options
context:
space:
mode:
authorMuhammad Faiz <mfcc64@gmail.com>2017-04-22 15:54:58 +0700
committerMuhammad Faiz <mfcc64@gmail.com>2017-04-23 14:27:47 +0700
commit31f61b0d4f8d452becb44f044c739f9057900159 (patch)
tree624d61d8db11c10d9f01aabaf649aa1f45a497d3 /libavcodec/rawdec.c
parentfdeab95a823b10adda6f29d134122537c21578e2 (diff)
downloadffmpeg-31f61b0d4f8d452becb44f044c739f9057900159.tar.gz
avcodec: do not use AVFrame accessor
Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libavcodec/rawdec.c')
-rw-r--r--libavcodec/rawdec.c4
1 files changed, 2 insertions, 2 deletions
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;