diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2003-09-08 22:49:26 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2003-09-08 22:49:26 +0000 |
commit | 98ce5991d766ad08c192632baedc896fd32fb7ad (patch) | |
tree | c10aacdb926bd497b16518deaef0e81ee9f591c7 /libavcodec/utils.c | |
parent | 6a58e1510d073e214db2fc2cbb9fe4c031a739e6 (diff) | |
download | ffmpeg-98ce5991d766ad08c192632baedc896fd32fb7ad.tar.gz |
update sub_id in mpegaudio decoding (might need same method as MPEG2VIDEO too ?)
Originally committed as revision 2238 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 33ff0f4153..c2705889ba 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -470,6 +470,12 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) if (p) { codec_name = p->name; + if (!encode && enc->codec_id == CODEC_ID_MP3) { + if (enc->sub_id == 2) + codec_name = "mp2"; + else if (enc->sub_id == 1) + codec_name = "mp1"; + } } else if (enc->codec_name[0] != '\0') { codec_name = enc->codec_name; } else { |