ffmpeg | branch: master | Azamat H. Hackimov <azamat.hacki...@gmail.com> | Mon Jul 3 01:10:55 2017 +0500| [121ab69c9d0650b8be9b3351b5f4fcaa5235bded] | committer: Michael Niedermayer
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 <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=121ab69c9d0650b8be9b3351b5f4fcaa5235bded --- libavformat/gdv.c | 2 ++ 1 file changed, 2 insertions(+) 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); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog