summaryrefslogtreecommitdiff
path: root/libavcodec/rawdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-01 22:25:09 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-01 23:18:22 +0100
commit30806ddcbc6d9057342e34f1e06cda4d47bad194 (patch)
tree701b072e4104195510ee16fd3f2f569711caf192 /libavcodec/rawdec.c
parentf59ff8faa2142b6394f46ecdf1f83458eca4d802 (diff)
avcodec/rawdec: use AVFrame accessor functions
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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 a8b70eeb69..f7143d7eb0 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -183,8 +183,8 @@ static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame,
frame->top_field_first = avctx->coded_frame->top_field_first;
frame->reordered_opaque = avctx->reordered_opaque;
frame->pkt_pts = avctx->pkt->pts;
- frame->pkt_pos = avctx->pkt->pos;
- frame->pkt_duration = avctx->pkt->duration;
+ av_frame_set_pkt_pos (frame, avctx->pkt->pos);
+ av_frame_set_pkt_duration(frame, avctx->pkt->duration);
if (context->tff >= 0) {
frame->interlaced_frame = 1;