aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-04-07 21:16:11 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-04-07 21:16:11 +0000
commitac2b2226ac2c5e151bcf0760948a775329ef21b3 (patch)
treedc5afbb58f7ddab145df43f0ee24545ecce089ac
parent6883ebe4b994dd6acd60e9aee789579db6b5a395 (diff)
downloadffmpeg-ac2b2226ac2c5e151bcf0760948a775329ef21b3.tar.gz
Do not uselessly read version string into a buffer.
Originally committed as revision 18359 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/nuv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/nuv.c b/libavformat/nuv.c
index 3339a74991..2d6e93a79c 100644
--- a/libavformat/nuv.c
+++ b/libavformat/nuv.c
@@ -123,14 +123,14 @@ static int get_codec_data(ByteIOContext *pb, AVStream *vst,
static int nuv_header(AVFormatContext *s, AVFormatParameters *ap) {
NUVContext *ctx = s->priv_data;
ByteIOContext *pb = s->pb;
- char id_string[12], version_string[5];
+ char id_string[12];
double aspect, fps;
int is_mythtv, width, height, v_packs, a_packs;
int stream_nr = 0;
AVStream *vst = NULL, *ast = NULL;
get_buffer(pb, id_string, 12);
is_mythtv = !memcmp(id_string, "MythTVVideo", 12);
- get_buffer(pb, version_string, 5);
+ url_fskip(pb, 5); // version string
url_fskip(pb, 3); // padding
width = get_le32(pb);
height = get_le32(pb);