summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_mpeg12.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/rtpdec_mpeg12.c')
-rw-r--r--libavformat/rtpdec_mpeg12.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec_mpeg12.c b/libavformat/rtpdec_mpeg12.c
index 2b884be75a..89ecd3042d 100644
--- a/libavformat/rtpdec_mpeg12.c
+++ b/libavformat/rtpdec_mpeg12.c
@@ -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;