summaryrefslogtreecommitdiffstats
path: root/decoder/ih264d_parse_islice.c
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/ih264d_parse_islice.c')
-rw-r--r--decoder/ih264d_parse_islice.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/decoder/ih264d_parse_islice.c b/decoder/ih264d_parse_islice.c
index f712c64..a5072e9 100644
--- a/decoder/ih264d_parse_islice.c
+++ b/decoder/ih264d_parse_islice.c
@@ -1372,8 +1372,14 @@ WORD32 ih264d_parse_islice(dec_struct_t *ps_dec,
if(ps_slice->u1_nal_ref_idc != 0)
{
if(!ps_dec->ps_dpb_cmds->u1_dpb_commands_read)
- ps_dec->u4_bitoffset = ih264d_read_mmco_commands(
- ps_dec);
+ {
+ i_temp = ih264d_read_mmco_commands(ps_dec);
+ if (i_temp < 0)
+ {
+ return ERROR_DBP_MANAGER_T;
+ }
+ ps_dec->u4_bitoffset = i_temp;
+ }
else
ps_dec->ps_bitstrm->u4_ofst += ps_dec->u4_bitoffset;
}