summaryrefslogtreecommitdiffstats
path: root/decoder/impeg2d_i_pic.c
diff options
context:
space:
mode:
authorVenkatarama Avadhani <venkatarama.avadhani@ittiam.com>2015-04-16 17:39:55 +0530
committerRachad Alao <rachad@google.com>2015-07-31 01:59:05 +0000
commitb34913857dacd4b7f82715c48ae1de9c56ede9e0 (patch)
treee6dd2b63fdd4f8ea621f4569cebbeefa963d549e /decoder/impeg2d_i_pic.c
parent8a947018e3e721c99b0f548d28a922471d94365b (diff)
downloadandroid_external_libmpeg2-b34913857dacd4b7f82715c48ae1de9c56ede9e0.tar.gz
android_external_libmpeg2-b34913857dacd4b7f82715c48ae1de9c56ede9e0.tar.bz2
android_external_libmpeg2-b34913857dacd4b7f82715c48ae1de9c56ede9e0.zip
Fixed few issues seen in CTS tests
Buffer managers are reset to init state in reset() Return picture type of picture being output instead of picture decoded Read start code only if input bitstream has enough bytes Bug: 22860270 Change-Id: Ic158d9dbff6d6b5295173b6ff2a4c6d6da66115f
Diffstat (limited to 'decoder/impeg2d_i_pic.c')
-rw-r--r--decoder/impeg2d_i_pic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/impeg2d_i_pic.c b/decoder/impeg2d_i_pic.c
index 1b45350..2e20983 100644
--- a/decoder/impeg2d_i_pic.c
+++ b/decoder/impeg2d_i_pic.c
@@ -316,7 +316,7 @@ IMPEG2D_ERROR_CODES_T impeg2d_dec_i_slice(dec_state_t *ps_dec)
{
return IMPEG2D_BITSTREAM_BUFF_EXCEEDED_ERR;
}
- else if ((ps_dec->u2_mb_x == ps_dec->u2_num_horiz_mb) && ((ps_dec->s_bit_stream.u4_offset + START_CODE_PREFIX_LEN) < ps_dec->s_bit_stream.u4_max_offset))
+ else if (ps_dec->u2_mb_x == ps_dec->u2_num_horiz_mb)
{
ps_dec->u2_mb_x = 0;
ps_dec->u2_mb_y++;