aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-01 22:24:41 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-01 23:18:22 +0100
commitff080346c680ca20ab2528b84111b79c8686c2c5 (patch)
tree48dc291b050223364a956ae4d721d6f2e57db4d4
parent7d7fb70129a6cf86d348d22bc7b847e39c715326 (diff)
downloadffmpeg-ff080346c680ca20ab2528b84111b79c8686c2c5.tar.gz
gifdec: use AVFrame accessor functions
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/gifdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index 71d3d70214..8fb1f4bbbd 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 ||