mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
use dts codec probing
Originally committed as revision 19014 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7103a77b4d
commit
e695906ec7
@ -336,6 +336,9 @@ static int set_codec_from_probe_data(AVStream *st, AVProbeData *pd, int score)
|
|||||||
} else if (!strcmp(fmt->name, "h264")) {
|
} else if (!strcmp(fmt->name, "h264")) {
|
||||||
st->codec->codec_id = CODEC_ID_H264;
|
st->codec->codec_id = CODEC_ID_H264;
|
||||||
st->codec->codec_type = CODEC_TYPE_VIDEO;
|
st->codec->codec_type = CODEC_TYPE_VIDEO;
|
||||||
|
} else if (!strcmp(fmt->name, "dts")) {
|
||||||
|
st->codec->codec_id = CODEC_ID_DTS;
|
||||||
|
st->codec->codec_type = CODEC_TYPE_AUDIO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return !!fmt;
|
return !!fmt;
|
||||||
|
Loading…
Reference in New Issue
Block a user