OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fc492d
)
Make Bink demuxer pass video flags to decoder
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Tue, 23 Feb 2010 06:36:26 +0000
(06:36 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Tue, 23 Feb 2010 06:36:26 +0000
(06:36 +0000)
Originally committed as revision 21978 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/bink.c
patch
|
blob
|
history
diff --git
a/libavformat/bink.c
b/libavformat/bink.c
index
5822875
..
2d4a2dd
100644
(file)
--- 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) {