Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-09 04:36:57 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-09-09 04:36:57 +0400
commit59fdf543d515d208a9913c67d0df5a3a095976f4 (patch)
tree6941c329ea93ed3eea4fa89b790d86d38a5ee0a5 /libavformat/smush.c
parent31a797eb2846ffa9c7ef2fa0abf81e946a173e6e (diff)
smush: read subversion for version==1 too.
This avoids a gcc warning, otherwise it should have no effect. its a bit more consistent too Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/smush.c')
-rw-r--r--libavformat/smush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/smush.c b/libavformat/smush.c
index d9a58c6cb5..b164c7516e 100644
--- a/libavformat/smush.c
+++ b/libavformat/smush.c
@@ -79,7 +79,7 @@ static int smush_read_header(AVFormatContext *ctx)
return AVERROR_INVALIDDATA;
smush->version = 1;
- avio_skip(pb, 2); // skip version
+ subversion = avio_rl16(pb);
nframes = avio_rl32(pb);
avio_skip(pb, 2); // skip pad
width = avio_rl16(pb);