[MPlayer-cvslog] r31128 - trunk/libmpdemux/demux_rtp_codec.cpp
cehoyos
subversion at mplayerhq.hu
Sun May 2 12:47:40 CEST 2010
Author: cehoyos
Date: Sun May 2 12:47:40 2010
New Revision: 31128
Log:
Silence permanent warning messages when decoding H264 over rtsp with
live555.
Patch by Gil Pedersen, gil A cmi D aau D dk
Modified:
trunk/libmpdemux/demux_rtp_codec.cpp
Modified: trunk/libmpdemux/demux_rtp_codec.cpp
==============================================================================
--- trunk/libmpdemux/demux_rtp_codec.cpp Sun May 2 00:49:05 2010 (r31127)
+++ trunk/libmpdemux/demux_rtp_codec.cpp Sun May 2 12:47:40 2010 (r31128)
@@ -134,12 +134,17 @@ void rtpCodecInitialize_video(demuxer_t*
unsigned char* configData
= parseH264ConfigStr(subsession->fmtp_spropparametersets(), configLen);
sh_video->bih = bih = insertVideoExtradata(bih, configData, configLen);
- delete[] configData;
#ifdef CONFIG_LIBAVCODEC
+ int fooLen;
+ const uint8_t* fooData;
avcodec_register_all();
h264parserctx = av_parser_init(CODEC_ID_H264);
avcctx = avcodec_alloc_context();
+ // Pass the config to the parser
+ h264parserctx->parser->parser_parse(h264parserctx, avcctx,
+ &fooData, &fooLen, configData, configLen);
#endif
+ delete[] configData;
needVideoFrameRate(demuxer, subsession);
} else if (strcmp(subsession->codecName(), "H261") == 0) {
bih->biCompression = sh_video->format
More information about the MPlayer-cvslog
mailing list