diff options
author | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | 2016-06-21 17:38:33 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-06-21 17:38:33 +0000 |
commit | ea40cf81eb3c24686edbbe4341c7cb6fe8abcf41 (patch) | |
tree | 45ea78f3633cc3dbc40a8d92edc90536d390f84b | |
parent | abd921f40715e60e077246e4bfdd88d2d9bdc5f1 (diff) | |
parent | 48b182db5d7825688efe977e48b4b3aef40900e0 (diff) | |
download | android_external_libavc-ea40cf81eb3c24686edbbe4341c7cb6fe8abcf41.tar.gz android_external_libavc-ea40cf81eb3c24686edbbe4341c7cb6fe8abcf41.tar.bz2 android_external_libavc-ea40cf81eb3c24686edbbe4341c7cb6fe8abcf41.zip |
Decoder: Do not conceal slices with invalid SPS/PPS am: 3a419eac8d
am: 48b182db5d
Change-Id: Idae71f69d2e97ed7ff4d767e0028ec19d105ad3d
-rw-r--r-- | decoder/ih264d_api.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/decoder/ih264d_api.c b/decoder/ih264d_api.c index bcdd376..cef51b0 100644 --- a/decoder/ih264d_api.c +++ b/decoder/ih264d_api.c @@ -2066,8 +2066,10 @@ WORD32 ih264d_video_decode(iv_obj_t *dec_hdl, void *pv_api_ip, void *pv_api_op) if((ret == IVD_RES_CHANGED) || (ret == IVD_MEM_ALLOC_FAILED) || (ret == ERROR_UNAVAIL_PICBUF_T) - || (ret == ERROR_UNAVAIL_MVBUF_T)) + || (ret == ERROR_UNAVAIL_MVBUF_T) + || (ret == ERROR_INV_SPS_PPS_T)) { + ps_dec->u4_slice_start_code_found = 0; break; } @@ -2149,7 +2151,8 @@ WORD32 ih264d_video_decode(iv_obj_t *dec_hdl, void *pv_api_ip, void *pv_api_op) if((ret == IVD_RES_CHANGED) || (ret == IVD_MEM_ALLOC_FAILED) || (ret == ERROR_UNAVAIL_PICBUF_T) - || (ret == ERROR_UNAVAIL_MVBUF_T)) + || (ret == ERROR_UNAVAIL_MVBUF_T) + || (ret == ERROR_INV_SPS_PPS_T)) { /* signal the decode thread */ |