diff options
| author | Venkatarama Avadhani <venkatarama.avadhani@ittiam.com> | 2018-01-08 22:28:03 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2018-01-08 22:28:03 +0000 |
| commit | 385836df2534397bae8e1b9d5658518aa98249e5 (patch) | |
| tree | f9d10f2245059512e310285b70b90ddc576227ce /test | |
| parent | 5410ce3f8ed272a36b7b0322e4a9c4bd84ae49f6 (diff) | |
| parent | 3f4f265255a2561cfce45e34a98e051e767f48fd (diff) | |
| download | platform_external_libmpeg2-385836df2534397bae8e1b9d5658518aa98249e5.tar.gz platform_external_libmpeg2-385836df2534397bae8e1b9d5658518aa98249e5.tar.bz2 platform_external_libmpeg2-385836df2534397bae8e1b9d5658518aa98249e5.zip | |
Merge "Adding Error Check for Output Buffer Size" into mnc-dev
am: 3f4f265255
Change-Id: Ief25234b04ff9bc58ce52b339b21bde50b701f7f
Diffstat (limited to 'test')
| -rw-r--r-- | test/decoder/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/decoder/main.c b/test/decoder/main.c index c344ec0..e6eb1ef 100644 --- a/test/decoder/main.c +++ b/test/decoder/main.c @@ -2246,6 +2246,7 @@ int main(WORD32 argc, CHAR *argv[]) u4_ip_buf_len); codec_exit(ac_error_str); } + s_app_ctx.num_disp_buf = s_ctl_op.u4_num_disp_bufs; /* Allocate output buffer only if display buffers are not shared */ /* Or if shared and output is 420P */ @@ -2988,6 +2989,12 @@ int main(WORD32 argc, CHAR *argv[]) break; } + else if (IVD_DISP_FRM_ZERO_OP_BUF_SIZE == + (IMPEG2D_ERROR_CODES_T)s_video_decode_op.u4_error_code) + { + printf("Output buffer is not large enough!\n"); + break; + } } if((1 == s_app_ctx.display) && |
