Commit 1fb0d961 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'a454dec1'

* commit 'a454dec1':
  pixdesc: fix NV20* descriptors
  h264_sei: check SEI size
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents d195e6e4 a454dec1
...@@ -285,7 +285,8 @@ int ff_h264_decode_sei(H264Context *h) ...@@ -285,7 +285,8 @@ int ff_h264_decode_sei(H264Context *h)
av_log(h->avctx, AV_LOG_DEBUG, "SEI %d len:%d\n", type, size); av_log(h->avctx, AV_LOG_DEBUG, "SEI %d len:%d\n", type, size);
if (size > get_bits_left(&h->gb) / 8) { if (size > get_bits_left(&h->gb) / 8) {
av_log(h->avctx, AV_LOG_ERROR, "SEI truncated\n"); av_log(h->avctx, AV_LOG_ERROR, "SEI type %d truncated at %d\n",
type, get_bits_left(&h->gb));
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
next = get_bits_count(&h->gb) + 8 * size; next = get_bits_count(&h->gb) + 8 * size;
......
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