summaryrefslogtreecommitdiff
path: root/libavformat/bink.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2010-02-23 06:36:26 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2010-02-23 06:36:26 +0000
commita45972a806f842edbd11c92b75e740c6df66e3b5 (patch)
tree60d2279bf9ddc7ab59b89c060841d59502641f63 /libavformat/bink.c
parent2fc492d8429d5eb2eb00be182c64d2099ab072b3 (diff)
Make Bink demuxer pass video flags to decoder
Originally committed as revision 21978 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/bink.c')
-rw-r--r--libavformat/bink.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/bink.c b/libavformat/bink.c
index 5822875356..2d4a2ddd68 100644
--- a/libavformat/bink.c
+++ b/libavformat/bink.c
@@ -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) {