[FFmpeg-devel] [PATCH] libavformat/gdv: Fix parsing for soundless video

Michael Niedermayer michael at niedermayer.cc
Thu Jul 6 00:24:44 EEST 2017


On Mon, Jul 03, 2017 at 01:10:55AM +0500, Azamat H. Hackimov wrote:
> Added 2 byte skipping if there no sound present, that fixes playback
> files without sound stream.
> ---
>  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);
> -- 
> 2.13.0

applied

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170705/dc7e0439/attachment.sig>


More information about the ffmpeg-devel mailing list