mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Merge commit '074c769de93bf12e9f44d77e58a8c7167f9dfb13'
* commit '074c769de93bf12e9f44d77e58a8c7167f9dfb13': h264_cavlc: check the size of the intra PCM data. This check is redundant, but does no harm Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
ededb5ffed
@ -773,6 +773,10 @@ decode_intra_mb:
|
||||
|
||||
// We assume these blocks are very rare so we do not optimize it.
|
||||
h->intra_pcm_ptr = align_get_bits(&h->gb);
|
||||
if (get_bits_left(&h->gb) < mb_size) {
|
||||
av_log(h->avctx, AV_LOG_ERROR, "Not enough data for an intra PCM block.\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
skip_bits_long(&h->gb, mb_size);
|
||||
|
||||
// In deblocking, the quantizer is 0
|
||||
|
Loading…
Reference in New Issue
Block a user