[FFmpeg-cvslog] gifdec: 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:24:41 2013 +0100| [ff080346c680ca20ab2528b84111b79c8686c2c5] | committer: Michael Niedermayer
gifdec: use AVFrame accessor functions
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ff080346c680ca20ab2528b84111b79c8686c2c5
---
libavcodec/gifdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index 71d3d70..8fb1f4b 100644
--- a/libavcodec/gifdec.c
+++ b/libavcodec/gifdec.c
@@ -451,7 +451,7 @@ static int gif_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, A
s->picture.pts = avpkt->pts;
s->picture.pkt_pts = avpkt->pts;
s->picture.pkt_dts = avpkt->dts;
- s->picture.pkt_duration = avpkt->duration;
+ av_frame_set_pkt_duration(&s->picture, avpkt->duration);
if (avpkt->size >= 6) {
s->keyframe = memcmp(avpkt->data, gif87a_sig, 6) == 0 ||
More information about the ffmpeg-cvslog
mailing list