mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-08-15 15:22:36 +07:00
[automerger] Decoder: Signal IVD_RES_CHANGED error for change in crop params am: fdbbd60bfe
Change-Id: I2058a5d409bbc7076c8a45a84521f37681ee38f2
This commit is contained in:
commit
2c56677a61
1 changed files with 12 additions and 0 deletions
|
|
@ -1601,6 +1601,18 @@ IHEVCD_ERROR_T ihevcd_parse_sps(codec_t *ps_codec)
|
|||
if((0 >= disp_wd) || (0 >= disp_ht))
|
||||
return IHEVCD_INVALID_PARAMETER;
|
||||
|
||||
if((0 != ps_codec->u4_allocate_dynamic_done) &&
|
||||
((ps_codec->i4_disp_wd != disp_wd) ||
|
||||
(ps_codec->i4_disp_ht != disp_ht)))
|
||||
{
|
||||
if(0 == ps_codec->i4_first_pic_done)
|
||||
{
|
||||
return IHEVCD_INVALID_PARAMETER;
|
||||
}
|
||||
ps_codec->i4_reset_flag = 1;
|
||||
return (IHEVCD_ERROR_T)IVD_RES_CHANGED;
|
||||
}
|
||||
|
||||
ps_codec->i4_disp_wd = disp_wd;
|
||||
ps_codec->i4_disp_ht = disp_ht;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue