diff options
author | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | 2015-08-04 09:55:15 +0530 |
---|---|---|
committer | Rachad Alao <rachad@google.com> | 2015-09-23 18:35:27 +0000 |
commit | 251b007eccf5a0ddac897ce27de88d3901bc5d00 (patch) | |
tree | aed2bbcfabe3895b38492754a28fcc0ffcda7938 /decoder/ih264d_vui.c | |
parent | 2ee0c1bced131ffb06d1b430b08a202cd3a52005 (diff) | |
download | android_external_libavc-251b007eccf5a0ddac897ce27de88d3901bc5d00.tar.gz android_external_libavc-251b007eccf5a0ddac897ce27de88d3901bc5d00.tar.bz2 android_external_libavc-251b007eccf5a0ddac897ce27de88d3901bc5d00.zip |
Decoder: Reduced memory requirements
Memory allocations are now done based on contents of SPS
API changed to move allocations inside the library
Also changed strlen to strnlen
Bug: 24221026
Change-Id: I9130457f564cddb4da7ec6399cc9fe88ee871217
Diffstat (limited to 'decoder/ih264d_vui.c')
-rw-r--r-- | decoder/ih264d_vui.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/decoder/ih264d_vui.c b/decoder/ih264d_vui.c index 87276bd..97b40c2 100644 --- a/decoder/ih264d_vui.c +++ b/decoder/ih264d_vui.c @@ -205,8 +205,9 @@ WORD32 ih264d_parse_vui_parametres(vui_t *ps_vu4, } ps_vu4->u1_pic_struct_present_flag = ih264d_get_bits_h264(ps_bitstrm, 1); - u4_bits = ih264d_get_bits_h264(ps_bitstrm, 1); - if(u4_bits) + ps_vu4->u1_bitstream_restriction_flag = ih264d_get_bits_h264(ps_bitstrm, 1); + + if(ps_vu4->u1_bitstream_restriction_flag) { ps_vu4->u1_mv_over_pic_boundaries_flag = ih264d_get_bits_h264( ps_bitstrm, 1); @@ -227,6 +228,7 @@ WORD32 ih264d_parse_vui_parametres(vui_t *ps_vu4, { /* Setting this to a large value if not present */ ps_vu4->u4_num_reorder_frames = 64; + ps_vu4->u4_max_dec_frame_buffering = 64; } return OK; |