Ticket #2038: pcm_codec_tag.diff
| File pcm_codec_tag.diff, 1.5 KB (added by , 14 years ago) |
|---|
-
configure
7068 7068 # mpeg1video for vf_lavc, snow for vf_uspp / vf_mcdeint, 7069 7069 libavencoders="$mplayer_encoders MPEG1VIDEO_ENCODER SNOW_ENCODER" 7070 7070 # needed for codec id -> tag conversion 7071 libavmuxers="AVI_MUXER "7071 libavmuxers="AVI_MUXER WAV_MUXER" 7072 7072 fi 7073 7073 echores "$_mencoder" 7074 7074 -
libmpdemux/mp_taglists.c
161 161 162 162 enum CodecID mp_tag2codec_id(uint32_t tag, int audio) 163 163 { 164 AVOutputFormat *av i_format;164 AVOutputFormat *av_format; 165 165 enum CodecID id = av_codec_get_id(audio ? mp_wav_taglists : mp_bmp_taglists, tag); 166 166 if (id != CODEC_ID_NONE) 167 167 return id; 168 av i_format = av_guess_format("avi", NULL, NULL);169 if (!av i_format) {170 mp_msg(MSGT_DEMUXER, MSGL_FATAL, "MPlayer cannot work properly without AVI muxer in libavformat!\n");168 av_format = av_guess_format(audio ? "wav" : "avi", NULL, NULL); 169 if (!av_format) { 170 mp_msg(MSGT_DEMUXER, MSGL_FATAL, "MPlayer cannot work properly without %s muxer in libavformat!\n", audio ? "WAV" : "AVI"); 171 171 return 0; 172 172 } 173 return av_codec_get_id(av i_format->codec_tag, tag);173 return av_codec_get_id(av_format->codec_tag, tag); 174 174 } 175 175 176 176 uint32_t mp_codec_id2tag(enum CodecID codec_id, uint32_t old_tag, int audio)
