X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fgxfenc.c;h=3f7d7851f7753efa9f907489d890159d48acbbb2;hb=4ccb7911baa761d373e28068b93db13a76a780b8;hp=08270c8f6662ad05107cfb66fc98028e19e563a1;hpb=455ce979d0793096662d139e996107a527617832;p=ffmpeg diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c index 08270c8f666..3f7d7851f77 100644 --- a/libavformat/gxfenc.c +++ b/libavformat/gxfenc.c @@ -834,10 +834,10 @@ static int gxf_write_media_preamble(AVFormatContext *s, AVPacket *pkt, int size) avio_wb16(pb, size / 2); } else if (st->codec->codec_id == CODEC_ID_MPEG2VIDEO) { int frame_type = gxf_parse_mpeg_frame(sc, pkt->data, pkt->size); - if (frame_type == FF_I_TYPE) { + if (frame_type == AV_PICTURE_TYPE_I) { avio_w8(pb, 0x0d); sc->iframes++; - } else if (frame_type == FF_B_TYPE) { + } else if (frame_type == AV_PICTURE_TYPE_B) { avio_w8(pb, 0x0f); sc->bframes++; } else {