OSDN Git Service

avcodec/rawdec: use AVFrame accessor functions
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Mar 2013 21:25:09 +0000 (22:25 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Mar 2013 22:18:22 +0000 (23:18 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/rawdec.c

index a8b70ee..f7143d7 100644 (file)
@@ -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;