Mercurial > libavformat.hg
changeset 4822:a751c4815d2d libavformat
Do not uselessly read version string into a buffer.
author | reimar |
---|---|
date | Tue, 07 Apr 2009 21:16:11 +0000 |
parents | 810c0bbb435e |
children | 4b571224b361 |
files | nuv.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/nuv.c Tue Apr 07 21:10:10 2009 +0000 +++ b/nuv.c Tue Apr 07 21:16:11 2009 +0000 @@ -123,14 +123,14 @@ 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);