History

Do not uselessly read version string into a buffer.

Originally committed as revision 18359 to svn://svn.ffmpeg.org/ffmpeg/trunk

Reimar Döffinger committed 17 years ago

Commit ac2b2221 parent 6883ebe1 file · +2 −2Browse files

Unified · Split

libavformat/nuv.c+2−2
@@ -123,14 +123,14 @@ static int get_codec_data(ByteIOContext *pb, AVStream *vst, · 122 unmodified lines
123123 static int nuv_header(AVFormatContext *s, AVFormatParameters *ap) {
124124 NUVContext *ctx = s->priv_data;
125125 ByteIOContext *pb = s->pb;
126− char id_string[12], version_string[5];
126+ char id_string[12];
127127 double aspect, fps;
128128 int is_mythtv, width, height, v_packs, a_packs;
129129 int stream_nr = 0;
130130 AVStream *vst = NULL, *ast = NULL;
131131 get_buffer(pb, id_string, 12);
132132 is_mythtv = !memcmp(id_string, "MythTVVideo", 12);
133− get_buffer(pb, version_string, 5);
133+ url_fskip(pb, 5); // version string
134134 url_fskip(pb, 3); // padding
135135 width = get_le32(pb);
136136 height = get_le32(pb);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t