Merge commit 'a454dec19aa6666b555deec431bc42eda391d7b6'
* commit 'a454dec19aa6666b555deec431bc42eda391d7b6': pixdesc: fix NV20* descriptors h264_sei: check SEI size Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
1fb0d96114
@ -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);
|
||||
|
||||
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;
|
||||
}
|
||||
next = get_bits_count(&h->gb) + 8 * size;
|
||||
|
Loading…
Reference in New Issue
Block a user