On Mon, Aug 18, 2014 at 08:05:41PM +0300, Andrey Myznikov wrote:
> Hello,
> 
>     Attached patch fixes segmentation fault in libavformat/a64.c
> a64_write_header() when output stream's codec is not open, so
> avctx->codec is NULL (in "stream_copy" use case for example).
> Correct access to codec id is use of "avctx->codec_id" instead of
> "avctx->codec->id".
> 
> Regards,
>     Andrey Myznikov
> 

>  a64.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 96351557a0db44309720871519238be5aba7a890  
> 0001-Avoid-segfault-in-a64_write_header-when-stream-codec.patch
> From e792c3db82b35f7f6d4cd9000e3be297b02df88d Mon Sep 17 00:00:00 2001
> From: Andrey Myznikov <andrey.myzni...@gmail.com>
> Date: Mon, 18 Aug 2014 20:03:31 +0300
> Subject: [PATCH] Avoid segfault in a64_write_header() when stream codec is not
>  open

applied

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Rewriting code that is poorly written but fully understood is good.
Rewriting code that one doesnt understand is a sign that one is less smart
then the original author, trying to rewrite it will not make it better.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to