Mercurial > libavformat.hg
changeset 5698:92fa6b12dc40 libavformat
Make Bink demuxer pass video flags to decoder
author | kostya |
---|---|
date | Tue, 23 Feb 2010 06:36:26 +0000 |
parents | 484fceabfad2 |
children | 2ace2ee84929 |
files | bink.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bink.c Tue Feb 23 00:35:50 2010 +0000 +++ b/bink.c Tue Feb 23 06:36:26 2010 +0000 @@ -112,10 +112,12 @@ } 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) {