Added codec ID to playback DNxHD

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Reuben Martin 2013-06-28 21:11:53 -05:00 committed by Michael Niedermayer
parent 90bd75e6eb
commit 2fa89b2736

View File

@ -176,6 +176,10 @@ static int get_sindex(AVFormatContext *s, int id, int format) {
st->codec->codec_type = AVMEDIA_TYPE_DATA;
st->codec->codec_id = AV_CODEC_ID_NONE;
break;
case 30:
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
st->codec->codec_id = AV_CODEC_ID_DNXHD;
break;
default:
st->codec->codec_type = AVMEDIA_TYPE_UNKNOWN;
st->codec->codec_id = AV_CODEC_ID_NONE;