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

Carl Eugen Hoyos cehoyos
Mon Aug 10 10:39:27 CEST 2009


Michael Niedermayer <michaelni <at> gmx.at> writes:

> > > 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?

You mean allocate it without using avcodec_alloc_context? I thought that
wouldn't work well with a shared libavcodec library.

Carl Eguen




More information about the ffmpeg-devel mailing list