X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fpmpdec.c;h=2ea37ef030d7fd91fa55d183d7ac2c9aaeabeef9;hb=7427d1ca4ab202def24fc3cefc4401a351d7248c;hp=315e58c184f273c589eeafa7df9ff399d138a4df;hpb=9023de342f88e961a3741753aff68925eebf884e;p=ffmpeg diff --git a/libavformat/pmpdec.c b/libavformat/pmpdec.c index 315e58c184f..2ea37ef030d 100644 --- a/libavformat/pmpdec.c +++ b/libavformat/pmpdec.c @@ -45,7 +45,7 @@ static int pmp_header(AVFormatContext *s) AVIOContext *pb = s->pb; int tb_num, tb_den; int index_cnt; - int audio_codec_id = CODEC_ID_NONE; + int audio_codec_id = AV_CODEC_ID_NONE; int srate, channels; int i; uint64_t pos; @@ -56,10 +56,10 @@ static int pmp_header(AVFormatContext *s) avio_skip(pb, 8); switch (avio_rl32(pb)) { case 0: - vst->codec->codec_id = CODEC_ID_MPEG4; + vst->codec->codec_id = AV_CODEC_ID_MPEG4; break; case 1: - vst->codec->codec_id = CODEC_ID_H264; + vst->codec->codec_id = AV_CODEC_ID_H264; break; default: av_log(s, AV_LOG_ERROR, "Unsupported video format\n"); @@ -77,11 +77,11 @@ static int pmp_header(AVFormatContext *s) switch (avio_rl32(pb)) { case 0: - audio_codec_id = CODEC_ID_MP3; + audio_codec_id = AV_CODEC_ID_MP3; break; case 1: av_log(s, AV_LOG_ERROR, "AAC not yet correctly supported\n"); - audio_codec_id = CODEC_ID_AAC; + audio_codec_id = AV_CODEC_ID_AAC; break; default: av_log(s, AV_LOG_ERROR, "Unsupported audio format\n"); @@ -173,7 +173,7 @@ static int pmp_close(AVFormatContext *s) AVInputFormat ff_pmp_demuxer = { .name = "pmp", - .long_name = NULL_IF_CONFIG_SMALL("Playstation Portable PMP format"), + .long_name = NULL_IF_CONFIG_SMALL("Playstation Portable PMP"), .priv_data_size = sizeof(PMPContext), .read_probe = pmp_probe, .read_header = pmp_header,