Commit ff080346 authored by Michael Niedermayer's avatar Michael Niedermayer

gifdec: use AVFrame accessor functions

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7d7fb701
...@@ -451,7 +451,7 @@ static int gif_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, A ...@@ -451,7 +451,7 @@ static int gif_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, A
s->picture.pts = avpkt->pts; s->picture.pts = avpkt->pts;
s->picture.pkt_pts = avpkt->pts; s->picture.pkt_pts = avpkt->pts;
s->picture.pkt_dts = avpkt->dts; 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) { if (avpkt->size >= 6) {
s->keyframe = memcmp(avpkt->data, gif87a_sig, 6) == 0 || s->keyframe = memcmp(avpkt->data, gif87a_sig, 6) == 0 ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment