diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 27b1c30a44..9cc00c7eae 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -1745,10 +1745,10 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type } } - if (st->codecpar->extradata_size < language_count * 2) - return AVERROR_INVALIDDATA; + if (st->codecpar->extradata_size < language_count * 2) + return AVERROR_INVALIDDATA; - extradata = st->codecpar->extradata; + extradata = st->codecpar->extradata; for (i = 0; i < language_count; i++) { language[i * 4 + 0] = get8(pp, desc_end);