mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
cavsdec: check stc in decode_slice_header()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9a57a37b70
commit
71e78e1f51
@ -418,6 +418,10 @@ static void decode_mb_b(AVSContext *h, enum cavs_mb mb_type) {
|
||||
static inline int decode_slice_header(AVSContext *h, GetBitContext *gb) {
|
||||
if(h->stc > 0xAF)
|
||||
av_log(h->s.avctx, AV_LOG_ERROR, "unexpected start code 0x%02x\n", h->stc);
|
||||
|
||||
if (h->stc >= h->mb_height)
|
||||
return -1;
|
||||
|
||||
h->mby = h->stc;
|
||||
h->mbidx = h->mby*h->mb_width;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user