Hi, On Thu, May 12, 2011 at 3:49 PM, Martin Storsjö <mar...@martin.st> wrote: > The later parsing of payload data depends on the configuration > being present. If it hasn't been configured properly yet, > parsing a data packet may lead to a crash. > --- > libavformat/rtpdec_qdm2.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/libavformat/rtpdec_qdm2.c b/libavformat/rtpdec_qdm2.c > index 7f5f077..66dd874 100644 > --- a/libavformat/rtpdec_qdm2.c > +++ b/libavformat/rtpdec_qdm2.c > @@ -266,6 +266,8 @@ static int qdm2_parse_packet(AVFormatContext *s, > PayloadContext *qdm, > * to the decoder that it is OK to initialize. */ > st->codec->codec_id = CODEC_ID_QDM2; > } > + if (st->codec->codec_id == CODEC_ID_NONE) > + return AVERROR(EAGAIN);
OK. Ronald _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel