[FFmpeg-devel] [PATCH]Fix MPlayer crash in decode_unregistered_user_data()
Carl Eugen Hoyos
cehoyos
Sun Aug 9 16:58:37 CEST 2009
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?
Carl Eugen
More information about the ffmpeg-devel
mailing list