]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpdec_mpeg12.c
Merge commit '9200514ad8717c63f82101dc394f4378854325bf'
[ffmpeg] / libavformat / rtpdec_mpeg12.c
index e6185eafa66f88e652cda54af383010dd420a6be..b93de3d9e4da678dd2280a483cf0eaa38a45510a 100644 (file)
@@ -34,7 +34,7 @@ static int mpeg_parse_packet(AVFormatContext *ctx, PayloadContext *data,
     h    = AV_RB32(buf);
     buf += 4;
     len -= 4;
-    if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO && h & (1 << 26)) {
+    if (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO && h & (1 << 26)) {
         /* MPEG-2 */
         if (len <= 4)
             return AVERROR_INVALIDDATA;