Use new function av_codec_get_tag2() in ffmpeg.c.

Fixes ticket #1953.
This commit is contained in:
Carl Eugen Hoyos 2013-01-17 20:46:21 +01:00
parent a1a707f728
commit 9a038a95d2
1 changed files with 2 additions and 1 deletions

View File

@ -2046,9 +2046,10 @@ static int transcode_init(void)
codec->codec_type = icodec->codec_type;
if (!codec->codec_tag) {
unsigned int codec_tag;
if (!oc->oformat->codec_tag ||
av_codec_get_id (oc->oformat->codec_tag, icodec->codec_tag) == codec->codec_id ||
av_codec_get_tag(oc->oformat->codec_tag, icodec->codec_id) <= 0)
!av_codec_get_tag2(oc->oformat->codec_tag, icodec->codec_id, &codec_tag))
codec->codec_tag = icodec->codec_tag;
}