X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fgifdec.c;h=8993ca615c054b1e1973055b5743f9bde5b2af11;hb=80195236c85d4bf8cd761bab8bc7b46dc33acb07;hp=48bd603dd0a5d2aa40eac16a0d80752c2347b439;hpb=e7b8ec8b6fd85464da473d317593ba061529932c;p=ffmpeg diff --git a/libavformat/gifdec.c b/libavformat/gifdec.c index 48bd603dd0a..8993ca615c0 100644 --- a/libavformat/gifdec.c +++ b/libavformat/gifdec.c @@ -118,10 +118,10 @@ static int gif_read_header(AVFormatContext *s) /* GIF format operates with time in "hundredths of second", * therefore timebase is 1/100 */ avpriv_set_pts_info(st, 64, 1, 100); - st->codec->codec_type = AVMEDIA_TYPE_VIDEO; - st->codec->codec_id = AV_CODEC_ID_GIF; - st->codec->width = width; - st->codec->height = height; + st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; + st->codecpar->codec_id = AV_CODEC_ID_GIF; + st->codecpar->width = width; + st->codecpar->height = height; /* jump to start because gif decoder needs header data too */ if (avio_seek(pb, 0, SEEK_SET) != 0)