Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svcdec: Handled timeout by returning status of the error #102

Merged
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
11 changes: 8 additions & 3 deletions decoder/svc/isvcd_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -4474,16 +4474,17 @@ WORD32 isvcd_dec_non_vcl(void *pv_out_non_vcl, void *pv_seq_params, void *pv_pic
case PIC_PARAM_NAL:

i_status = isvcd_parse_pps(ps_svc_lyr_dec, ps_bitstrm);
if(i_status == ERROR_INV_SPS_PPS_T) return i_status;
if(!i_status)
{
ps_dec->i4_header_decoded |= 0x2;
ps_svcd_ctxt->u4_num_pps_ctr++;
}
if(i_status) return i_status;
break;
case SEI_NAL:
{
i_status = ih264d_parse_sei_message(ps_dec, ps_bitstrm);
if(i_status) return i_status;
ih264d_parse_sei(ps_dec, ps_bitstrm);
}
break;
Expand Down Expand Up @@ -4545,7 +4546,7 @@ WORD32 isvcd_seq_hdr_dec(svc_dec_ctxt_t *ps_svcd_ctxt, ivd_video_decode_ip_t *ps
/* 2. Picture parameter set */
/* 3. SEI message */
/* ------------------------------------------------------ */
isvcd_dec_non_vcl(&ps_svcd_ctxt->s_non_vcl_nal, ps_svcd_ctxt->ps_sps, ps_svcd_ctxt->ps_pps,
i4_status = isvcd_dec_non_vcl(&ps_svcd_ctxt->s_non_vcl_nal, ps_svcd_ctxt->ps_sps, ps_svcd_ctxt->ps_pps,
ps_svcd_ctxt);

return (i4_status);
Expand Down Expand Up @@ -4579,7 +4580,7 @@ WORD32 isvcd_seq_hdr_dec(svc_dec_ctxt_t *ps_svcd_ctxt, ivd_video_decode_ip_t *ps
WORD32 isvcd_pre_parse_refine_au(svc_dec_ctxt_t *ps_svcd_ctxt, ivd_video_decode_ip_t *ps_in_bufs,
UWORD32 *pu4_bytes_consumed)
{
WORD32 i4_status, i4_non_vcl_status;
WORD32 i4_status = 0, i4_non_vcl_status;
UWORD32 u4_bytes_consumed = 0;
dec_struct_t *ps_dec;
svc_dec_lyr_struct_t *ps_svc_lyr_dec;
Expand All @@ -4602,6 +4603,10 @@ WORD32 isvcd_pre_parse_refine_au(svc_dec_ctxt_t *ps_svcd_ctxt, ivd_video_decode_
}
}
*pu4_bytes_consumed = u4_bytes_consumed;
if (i4_status)
{
return NOT_OK;
}
if(1 == ps_dec->i4_decode_header)
{
return OK;
Expand Down
Loading