Commit ededb5ff authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '074c769d'

* commit '074c769d':
  h264_cavlc: check the size of the intra PCM data.

This check is redundant, but does no harm
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 9cbe834d 074c769d
...@@ -773,6 +773,10 @@ decode_intra_mb: ...@@ -773,6 +773,10 @@ decode_intra_mb:
// We assume these blocks are very rare so we do not optimize it. // We assume these blocks are very rare so we do not optimize it.
h->intra_pcm_ptr = align_get_bits(&h->gb); 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); skip_bits_long(&h->gb, mb_size);
// In deblocking, the quantizer is 0 // In deblocking, the quantizer is 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment