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
123static int nuv_header(AVFormatContext *s, AVFormatParameters *ap) {123static int nuv_header(AVFormatContext *s, AVFormatParameters *ap) {
124 NUVContext *ctx = s->priv_data;124 NUVContext *ctx = s->priv_data;
125 ByteIOContext *pb = s->pb;125 ByteIOContext *pb = s->pb;
126 char id_string[12], version_string[5];126 char id_string[12];
127 double aspect, fps;127 double aspect, fps;
128 int is_mythtv, width, height, v_packs, a_packs;128 int is_mythtv, width, height, v_packs, a_packs;
129 int stream_nr = 0;129 int stream_nr = 0;
130 AVStream *vst = NULL, *ast = NULL;130 AVStream *vst = NULL, *ast = NULL;
131 get_buffer(pb, id_string, 12);131 get_buffer(pb, id_string, 12);
132 is_mythtv = !memcmp(id_string, "MythTVVideo", 12);132 is_mythtv = !memcmp(id_string, "MythTVVideo", 12);
133 get_buffer(pb, version_string, 5);133 url_fskip(pb, 5); // version string
134 url_fskip(pb, 3); // padding134 url_fskip(pb, 3); // padding
135 width = get_le32(pb);135 width = get_le32(pb);
136 height = get_le32(pb);136 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