OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d7fb70
)
gifdec: use AVFrame accessor functions
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 1 Mar 2013 21:24:41 +0000
(22:24 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 1 Mar 2013 22:18:22 +0000
(23:18 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/gifdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/gifdec.c
b/libavcodec/gifdec.c
index
71d3d70
..
8fb1f4b
100644
(file)
--- 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 ||