[FFmpeg-devel] [PATCH] roqvideoenc: set enc->avctx in roq_encode_init

Michael Niedermayer michaelni at gmx.at
Mon Mar 9 21:55:58 CET 2015


On Mon, Mar 09, 2015 at 07:31:27PM +0100, Andreas Cadhalpun wrote:
> Hi,
> 
> trying to encode roqvideo into asf currently crashes, because
> enc->avctx is not set in roq_encode_end, which calls:
>     av_frame_free(&enc->avctx->coded_frame);
> 
> Best regards,
> Andreas

>  roqvideoenc.c |    2 ++
>  1 file changed, 2 insertions(+)
> d914961edeb434e31066f9257b6295e03d09d671  0001-roqvideoenc-set-enc-avctx-in-roq_encode_init.patch
> From 4cd715ab02e25948f695c0a4186dab4b864a5ce3 Mon Sep 17 00:00:00 2001
> From: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
> Date: Mon, 9 Mar 2015 19:24:09 +0100
> Subject: [PATCH] roqvideoenc: set enc->avctx in roq_encode_init
> 
> So far it is only set in roq_encode_frame, but it is used in
> roq_encode_end to free the coded_frame. This currently segfaults if
> roq_encode_frame is not called between roq_encode_init and
> roq_encode_end.
> 
> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
> ---
>  libavcodec/roqvideoenc.c | 2 ++
>  1 file changed, 2 insertions(+)

applied

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- 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/20150309/c2948423/attachment.asc>


More information about the ffmpeg-devel mailing list