You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Merge commit '1973079417e8701b52ba810a72cb6c7c6f7f9a56'
* commit '1973079417e8701b52ba810a72cb6c7c6f7f9a56': opusdec: make sure all substreams have the same number of coded samples Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -499,6 +499,12 @@ static int opus_decode_packet(AVCodecContext *avctx, void *data,
|
|||||||
av_log(avctx, AV_LOG_ERROR, "Error parsing the packet header.\n");
|
av_log(avctx, AV_LOG_ERROR, "Error parsing the packet header.\n");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
if (coded_samples != s->packet.frame_count * s->packet.frame_duration) {
|
||||||
|
av_log(avctx, AV_LOG_ERROR,
|
||||||
|
"Mismatching coded sample count in substream %d.\n", i);
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
}
|
||||||
|
|
||||||
s->silk_samplerate = get_silk_samplerate(s->packet.config);
|
s->silk_samplerate = get_silk_samplerate(s->packet.config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user