Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions decoder/impeg2d_dec_hdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ IMPEG2D_ERROR_CODES_T impeg2d_dec_seq_hdr(dec_state_t *ps_dec)
else if((ps_dec->u2_horizontal_size < MIN_WIDTH)
|| (ps_dec->u2_vertical_size < MIN_HEIGHT))
{
ps_dec->u2_reinit_max_height = 0;
ps_dec->u2_reinit_max_width = 0;
return IMPEG2D_UNSUPPORTED_DIMENSIONS;
}
else
Expand All @@ -222,6 +224,8 @@ IMPEG2D_ERROR_CODES_T impeg2d_dec_seq_hdr(dec_state_t *ps_dec)
if((ps_dec->u2_horizontal_size < MIN_WIDTH)
|| (ps_dec->u2_vertical_size < MIN_HEIGHT))
{
ps_dec->u2_reinit_max_height = 0;
ps_dec->u2_reinit_max_width = 0;
return IMPEG2D_UNSUPPORTED_DIMENSIONS;
}

Expand Down
Loading