提交 121ab69c 编写于 作者: A Azamat H. Hackimov 提交者: 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: NMichael Niedermayer <michael@niedermayer.cc>
上级 369a3e11
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册