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>
This commit is contained in:
committed by
Michael Niedermayer
parent
369a3e111c
commit
121ab69c9d
@ -107,6 +107,8 @@ static int gdv_read_header(AVFormatContext *ctx)
|
|||||||
gdv->audio_size = (ast->codecpar->sample_rate / fps) *
|
gdv->audio_size = (ast->codecpar->sample_rate / fps) *
|
||||||
ast->codecpar->channels * (1 + !!(snd_flags & 4)) / (1 + !!(snd_flags & 8));
|
ast->codecpar->channels * (1 + !!(snd_flags & 4)) / (1 + !!(snd_flags & 8));
|
||||||
gdv->is_audio = 1;
|
gdv->is_audio = 1;
|
||||||
|
} else {
|
||||||
|
avio_skip(pb, 2);
|
||||||
}
|
}
|
||||||
vid_depth = avio_rl16(pb);
|
vid_depth = avio_rl16(pb);
|
||||||
avio_skip(pb, 4);
|
avio_skip(pb, 4);
|
||||||
|
Reference in New Issue
Block a user