summaryrefslogtreecommitdiffstats
path: root/decoder/ih264d_api.c
diff options
context:
space:
mode:
authorHamsalekha S <hamsalekha.s@ittiam.com>2017-05-22 14:10:15 +0530
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-06-15 18:55:55 +0000
commitb96c229fdf73227aca5c84031a5a87aa629bcb2e (patch)
tree495a25d6633f997c2a826b4bd7d1dab13fecba2f /decoder/ih264d_api.c
parentb31a137e13fc724eb9d05782aac6ea0ab1f3615e (diff)
downloadandroid_external_libavc-b96c229fdf73227aca5c84031a5a87aa629bcb2e.tar.gz
android_external_libavc-b96c229fdf73227aca5c84031a5a87aa629bcb2e.tar.bz2
android_external_libavc-b96c229fdf73227aca5c84031a5a87aa629bcb2e.zip
Fix resolution change within a decode call.
If resolution changes within a decode call,due to multiple sps, the decoder hangs as the the application will give the same data again in the next decode call. This results in a hang. Fixed this by flaging an error, when sps/resoultion changes within a process call. Bug: 38487564 Test: ran POC on patched O-based system w/o hanging Change-Id: I30095b2e8bf573c1a58a316a23b1a5e6a4af589b (cherry picked from commit fe18375850fe04b8c4ff2f1b20069e161f718e53)
Diffstat (limited to 'decoder/ih264d_api.c')
-rw-r--r--decoder/ih264d_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/ih264d_api.c b/decoder/ih264d_api.c
index 6940788..640fdea 100644
--- a/decoder/ih264d_api.c
+++ b/decoder/ih264d_api.c
@@ -1927,6 +1927,7 @@ WORD32 ih264d_video_decode(iv_obj_t *dec_hdl, void *pv_api_ip, void *pv_api_op)
ps_dec->u4_bs_deblk_thread_created = 0;
ps_dec->u4_cur_bs_mb_num = 0;
ps_dec->u4_start_recon_deblk = 0;
+ ps_dec->u4_sps_cnt_in_process = 0;
DEBUG_THREADS_PRINTF(" Starting process call\n");