summaryrefslogtreecommitdiffstats
path: root/decoder/ih264d_api.c
diff options
context:
space:
mode:
authorHarish Mahendrakar <harish.mahendrakar@ittiam.com>2016-07-14 01:22:44 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-07-14 01:22:44 +0000
commitff54ee611508985a780e09488dd1319e30a77017 (patch)
treeaf28343cb22e852800fa24376f3abcb3d0bd7aba /decoder/ih264d_api.c
parent42f2d92bc4759b7dd261b190f6a1bba6d7ad0223 (diff)
parentb926905ee245644806e62bef92b61c8832c44fd8 (diff)
downloadandroid_external_libavc-ff54ee611508985a780e09488dd1319e30a77017.tar.gz
android_external_libavc-ff54ee611508985a780e09488dd1319e30a77017.tar.bz2
android_external_libavc-ff54ee611508985a780e09488dd1319e30a77017.zip
Fixed error concealment when no MBs are decoded in the current pic
am: b926905ee2 Change-Id: I8a0a6fc068b543a4431b085c9335301e89ef2e14
Diffstat (limited to 'decoder/ih264d_api.c')
-rw-r--r--decoder/ih264d_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoder/ih264d_api.c b/decoder/ih264d_api.c
index 801960b..6aa71f2 100644
--- a/decoder/ih264d_api.c
+++ b/decoder/ih264d_api.c
@@ -2140,6 +2140,9 @@ WORD32 ih264d_video_decode(iv_obj_t *dec_hdl, void *pv_api_ip, void *pv_api_op)
else
prev_slice_err = 2;
+ if(ps_dec->u4_first_slice_in_pic && (ps_dec->u2_total_mbs_coded == 0))
+ prev_slice_err = 1;
+
ret1 = ih264d_mark_err_slice_skip(ps_dec, num_mb_skipped, ps_dec->u1_nal_unit_type == IDR_SLICE_NAL, ps_dec->ps_cur_slice->u2_frame_num,
&temp_poc, prev_slice_err);