# HG changeset patch # User cehoyos # Date 1272797260 0 # Node ID adf57737978c76bfa622e9d228b85a3e67ebb2bb # Parent 52eb10f9e51e22dcc619f21372c92ca0915fe512 Silence permanent warning messages when decoding H264 over rtsp with live555. Patch by Gil Pedersen, gil A cmi D aau D dk diff -r 52eb10f9e51e -r adf57737978c libmpdemux/demux_rtp_codec.cpp --- a/libmpdemux/demux_rtp_codec.cpp Sat May 01 22:49:05 2010 +0000 +++ b/libmpdemux/demux_rtp_codec.cpp Sun May 02 10:47:40 2010 +0000 @@ -134,12 +134,17 @@ 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