aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2017-07-03 01:10:55 +0500
committerMichael Niedermayer <michael@niedermayer.cc>2017-07-05 23:25:58 +0200
commit121ab69c9d0650b8be9b3351b5f4fcaa5235bded (patch)
tree3efb1e3a1af1511924abdffa3832c2f0d29a5307
parent369a3e111cb8015c3a3acc5c2c15728c8f37084f (diff)
downloadffmpeg-121ab69c9d0650b8be9b3351b5f4fcaa5235bded.tar.gz
libavformat/gdv: Fix parsing for soundless video
Added 2 byte skipping if there no sound present, that fixes playback files without sound stream. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/gdv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/gdv.c b/libavformat/gdv.c
index 90692bd61c..32209320a7 100644
--- a/libavformat/gdv.c
+++ b/libavformat/gdv.c
@@ -107,6 +107,8 @@ static int gdv_read_header(AVFormatContext *ctx)
gdv->audio_size = (ast->codecpar->sample_rate / fps) *
ast->codecpar->channels * (1 + !!(snd_flags & 4)) / (1 + !!(snd_flags & 8));
gdv->is_audio = 1;
+ } else {
+ avio_skip(pb, 2);
}
vid_depth = avio_rl16(pb);
avio_skip(pb, 4);