Do not uselessly read version string into a buffer.

Originally committed as revision 18359 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Reimar Döffinger 2009-04-07 21:16:11 +00:00
parent 6883ebe4b9
commit ac2b2226ac

View File

@ -123,14 +123,14 @@ static int get_codec_data(ByteIOContext *pb, AVStream *vst,
static int nuv_header(AVFormatContext *s, AVFormatParameters *ap) { static int nuv_header(AVFormatContext *s, AVFormatParameters *ap) {
NUVContext *ctx = s->priv_data; NUVContext *ctx = s->priv_data;
ByteIOContext *pb = s->pb; ByteIOContext *pb = s->pb;
char id_string[12], version_string[5]; char id_string[12];
double aspect, fps; double aspect, fps;
int is_mythtv, width, height, v_packs, a_packs; int is_mythtv, width, height, v_packs, a_packs;
int stream_nr = 0; int stream_nr = 0;
AVStream *vst = NULL, *ast = NULL; AVStream *vst = NULL, *ast = NULL;
get_buffer(pb, id_string, 12); get_buffer(pb, id_string, 12);
is_mythtv = !memcmp(id_string, "MythTVVideo", 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 url_fskip(pb, 3); // padding
width = get_le32(pb); width = get_le32(pb);
height = get_le32(pb); height = get_le32(pb);