Mercurial > mplayer.hg
diff libmpdemux/demux_rtp_codec.cpp @ 34566:f3d53cd55376
Update deprecated avcodec_alloc_context()/avcodec_open() API calls
author | siretart |
---|---|
date | Mon, 06 Feb 2012 06:30:12 +0000 |
parents | a5d8b198c214 |
children | 8517826b0dbd |
line wrap: on
line diff
--- a/libmpdemux/demux_rtp_codec.cpp Sun Feb 05 21:20:51 2012 +0000 +++ b/libmpdemux/demux_rtp_codec.cpp Mon Feb 06 06:30:12 2012 +0000 @@ -141,7 +141,7 @@ const uint8_t* fooData; avcodec_register_all(); h264parserctx = av_parser_init(CODEC_ID_H264); - avcctx = avcodec_alloc_context(); + avcctx = avcodec_alloc_context3(NULL); // Pass the config to the parser h264parserctx->parser->parser_parse(h264parserctx, avcctx, &fooData, &fooLen, configData, configLen);