]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpdec_qdm2.c
mxf: H.264/MPEG-4 AVC Intra support
[ffmpeg] / libavformat / rtpdec_qdm2.c
index 1c1d3219be015eec16376e17363ef0d8bede4981..c4314ec2c4f9e72233dbed6cdc74a2a296d8baa9 100644 (file)
@@ -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);
 
         /* subpackets */
         while (end - p >= 4) {