[FFmpeg-devel] 0001-Avoid-segfault-in-a64_write_header-when-stream-codec.patch

Michael Niedermayer michaelni at gmx.at
Mon Aug 18 19:48:55 CEST 2014


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.myznikov at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140818/2ac178a0/attachment.asc>


More information about the ffmpeg-devel mailing list