[FFmpeg-devel] [PATCH]Fix MPlayer crash in decode_unregistered_user_data()

Michael Niedermayer michaelni
Mon Aug 10 02:37:42 CEST 2009


On Sun, Aug 09, 2009 at 02:58:37PM +0000, Carl Eugen Hoyos wrote:
> Michael Niedermayer <michaelni <at> gmx.at> writes:
> 
> > 
> > On Thu, Aug 06, 2009 at 09:55:50AM +0200, Carl Eugen Hoyos wrote:
> > > Hi!
> > >
> > > Attached patch fixes crashes on startup with different H264 over rtsp 
> > > streams when MPlayer is used with live555 support.
> > >
> > > Please comment, Carl Eugen
> > 
> > why is avctx NULL ?
> 
> Currently, the following is done:
> 
>     avcodec_register_all();
>     AVCodecParserContext * h264parserctx = av_parser_init(CODEC_ID_H264);
> ...
>     h264parserctx->parser->parser_parse(h264parserctx, NULL...
> 
> Is the correct way to use parser_parse to also call
>     AVCodecContext * parser_context = avcodec_alloc_context
> at initialisation and pass this context whenever calling the parser?

is there a disadvantage in allocating a AVCodecContext?

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

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090810/1b95dc7a/attachment.pgp>



More information about the ffmpeg-devel mailing list