[FFmpeg-cvslog] avcodec/rawdec: use AVFrame accessor functions
Michael Niedermayer
git at videolan.org
Fri Mar 1 23:48:39 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Mar 1 22:25:09 2013 +0100| [30806ddcbc6d9057342e34f1e06cda4d47bad194] | committer: Michael Niedermayer
avcodec/rawdec: use AVFrame accessor functions
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=30806ddcbc6d9057342e34f1e06cda4d47bad194
---
libavcodec/rawdec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index a8b70ee..f7143d7 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;
More information about the ffmpeg-cvslog
mailing list