X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Foggparsedirac.c;h=2a9d9006e38018f31b9b261744ac48e51a0b5b27;hb=18b0c39f99eee508107c47345494e535b8757434;hp=abcf4fb15cf7b083e213652615684781b3aeeb36;hpb=204c4e953d895e15ab0908d715fd46181bf32add;p=ffmpeg diff --git a/libavformat/oggparsedirac.c b/libavformat/oggparsedirac.c index abcf4fb15cf..2a9d9006e38 100644 --- a/libavformat/oggparsedirac.c +++ b/libavformat/oggparsedirac.c @@ -33,7 +33,7 @@ static int dirac_header(AVFormatContext *s, int idx) GetBitContext gb; // already parsed the header - if (st->codec->codec_id == CODEC_ID_DIRAC) + if (st->codec->codec_id == AV_CODEC_ID_DIRAC) return 0; init_get_bits(&gb, os->buf + os->pstart + 13, (os->psize - 13) * 8); @@ -41,7 +41,7 @@ static int dirac_header(AVFormatContext *s, int idx) return -1; st->codec->codec_type = AVMEDIA_TYPE_VIDEO; - st->codec->codec_id = CODEC_ID_DIRAC; + st->codec->codec_id = AV_CODEC_ID_DIRAC; // dirac in ogg always stores timestamps as though the video were interlaced avpriv_set_pts_info(st, 64, st->codec->time_base.num, 2*st->codec->time_base.den); return 1; @@ -79,7 +79,7 @@ static int old_dirac_header(AVFormatContext *s, int idx) return 0; st->codec->codec_type = AVMEDIA_TYPE_VIDEO; - st->codec->codec_id = CODEC_ID_DIRAC; + st->codec->codec_id = AV_CODEC_ID_DIRAC; avpriv_set_pts_info(st, 64, AV_RB32(buf+12), AV_RB32(buf+8)); return 1; }