Commit 749538e5 authored by kostya's avatar kostya

Make Bink demuxer pass video flags to decoder

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21978 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7f913ee3
......@@ -112,10 +112,12 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
}
av_set_pts_info(vst, 64, fps_den, fps_num);
url_fskip(pb, 4);
vst->codec->codec_type = CODEC_TYPE_VIDEO;
vst->codec->codec_id = CODEC_ID_BINKVIDEO;
vst->codec->extradata = av_mallocz(4 + FF_INPUT_BUFFER_PADDING_SIZE);
vst->codec->extradata_size = 4;
get_buffer(pb, vst->codec->extradata, 4);
bink->num_audio_tracks = get_le32(pb);
if (bink->num_audio_tracks > BINK_MAX_AUDIO_TRACKS) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment