History log of /external/libavc/decoder/ih264d_parse_slice.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
90305d2e0a293240a88e01ddd7f62b8552c2d34c 01-Aug-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Decoder: Fixed hang in the case of dangling field

The u1_top_bottom_decoded flag in the decoder context has been fixed
to be updated correctly in the case of dangling field

Bug: 63315932
Test: ran POC after patching
Change-Id: I8db4ebeb94fba735ba45f365c37e52a202ea84cd
(cherry picked from commit 252628cffba8702e36b98c193bcd2fe67d8237ee)
/external/libavc/decoder/ih264d_parse_slice.c
a09a8b43202990db63d85f790ca47613cc790a7a 21-Apr-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Decoder: Fixed allocation of pv_map_ref_idx_to_poc_buf.

Increased allocation to include reference list1 also by
default. In the case of error, we could get B_SLICES
even in BASE_PROFILE. The initialization in the
dec_slice_struct_t slice structure has also been
modified accordingly.

Test: run poc with and without this patch
Bug: 38496660
Change-Id: I3451d79bbcd9f0d7a80981a9897f877b7f0812bd
(cherry picked from commit a925a6b539642c8749c91a6f33e362eda8c4a5b6)
/external/libavc/decoder/ih264d_parse_slice.c
af9bee74bf4290356cee777afc1f18a9e8c8d08c 06-Jun-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Initialize DPB structures to valid values.

When the first frame is a B frame, the colocated picture
will now point to the current frame.

Test: run poc with and without this patch
Bug: 38115076
Change-Id: I48a8f128740551d6a9252931dafcf8c629ecad0d
(cherry picked from commit b8d362561e48dde8898eb0415f298d64e76f2b7c)
/external/libavc/decoder/ih264d_parse_slice.c
4efd2578c72b3fa0a315db30c9e3c088fadab009 01-Jun-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Added error check for output buffer size.

The output buffer size given by the application, needs to be checked
in every process call. This is required in the case of resolution
change.

Bug: 36006815
Test: avcdec -i poc.bin
Change-Id: I16a92cdad23eb7b1e12c1a67c1b2599204f29249
(cherry picked from commit 3f6c941de5cd959072fa046c9d6cb26fa0f01dc6)
/external/libavc/decoder/ih264d_parse_slice.c
efd28f6c36d40d0a8dd92f344e1d9a992b315c36 23-May-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Initializing reference list for every P/B slice.

Reference list needs to be initialized for every P/B
slice, to ensure colocated picture always points to a
valid picture buffer, even in the case of error.

Bug: 36279112

Change-Id: I051d7e725b0af209cc7bb333db8da3518adf78a0
(cherry picked from commit f9d3f9af8fc113acda28e1a4e48d85736ee29c75)
/external/libavc/decoder/ih264d_parse_slice.c
632ff754836d22415136cb3f97fe4622c862ce81 08-May-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Decoder: Fixed flag u1_top_bottom_decoded.

Fixed initialization of flag u1_top_bottom_decoded
in decoder context. This flag indicates if top
field and botton field is decoded.

Bug: 36993291
Test: avcdec --input poc.h264 --output /dev/null
Change-Id: I9f8a2620683abd8b15e4780d76d4849394710716
(cherry picked from commit 7703822731a3e5425390ba1d177d061a699c367d)
/external/libavc/decoder/ih264d_parse_slice.c
16fa990ce15cae5dcf3fac059cd18264f50881b2 14-Feb-2017 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Fixed initialization of first_slice_in_pic
am: 0b23c81c3d

Change-Id: I55e49ca9616a151456342bad7673d0986098b448
ba7f9e2aeddeda9b91addbe1d0abc68499f9dfc7 14-Feb-2017 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Moved end of pic processing to end of decode call
am: 494561291a

Change-Id: Id3867f5dd0788f12f6827ed311a309d1fa58c535
8b75cdae9bab9ade09cfb717443cd60b0542815b 14-Feb-2017 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Treat first slice in a picture as part of new picture always
am: 8b5fd8f24e

Change-Id: Ia14e9fae4a08143ff86439b5440ab9cf5e3052e3
0b23c81c3dd9ec38f7e6806a3955fed1925541a0 16-Jan-2017 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Fixed initialization of first_slice_in_pic

To handle some errors, first_slice_in_pic was being set to 2.
This is now cleaned up and first_slice_in_pic is set to 1 only once per pic.
This will ensure picture level initializations are done only once even in case
of error clips

Bug: 33717589
Bug: 33551775
Bug: 33716442
Bug: 33677995

Change-Id: If341436b3cbaa724017eedddd88c2e6fac36d8ba
/external/libavc/decoder/ih264d_parse_slice.c
494561291a503840f385fbcd11d9bc5f4dc502b8 04-Jan-2017 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Moved end of pic processing to end of decode call

ih264d_end_of_pic() was called after parsing slice of a new picture.
This is now being done at the end of decode of the current picture.
decode_gaps_in_frame_num which needs frame_num of new slice is now
done after decoding frame_num in new slice.

This helps in handling errors in picaff streams with gaps in frames

Bug: 33588051
Bug: 33641588
Bug: 34097231
Change-Id: I1a26e611aaa2c19e2043e05a210849bd21b22220
/external/libavc/decoder/ih264d_parse_slice.c
8b5fd8f24eba5dd19ab2f80ea11a9125aa882ae2 26-Apr-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Treat first slice in a picture as part of new picture always

This is needed to decode streams with consecutive IDRs.

Bug: 34097231
Test: successful run of POC in security bug
Change-Id: Ib737a4ef4b8c5bb7a57c90292102dd28af0615fe
/external/libavc/decoder/ih264d_parse_slice.c
cf05624312d3e161cd16150d50b5bdae306fbc10 13-Feb-2017 Ray Essick <essick@google.com> Merge "Decoder: Return correct error code for slice header errors" into mnc-dev
am: 51ecbcabfb

Change-Id: Ib486869b38d66e1fb0fdeffe4316dce6a5ff9fd9
16306f7347de4220075154ec84431f835a5c0a77 13-Feb-2017 Ray Essick <essick@google.com> Merge "Decoder: Initialize default reference buffers for all pictures" into mnc-dev
am: d61abc5195

Change-Id: Ieb21ecb1c3152bde97adc7cfcfc4d49afcafd93b
51ecbcabfbe2027669881f1cc9b021c1a9dce6f2 13-Feb-2017 Ray Essick <essick@google.com> Merge "Decoder: Return correct error code for slice header errors" into mnc-dev
9a00f562a612d56e7b2b989d168647db900ba6cf 05-Jan-2017 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Return correct error code for slice header errors

Return ERROR_INV_SLICE_HDR_T instead of ERROR_INV_SPS_PPS_T for slice
header errors.

Bug: 34097915
Change-Id: I45d14a71f2322ff349058baaf65fb0f3c1140fba
/external/libavc/decoder/ih264d_parse_slice.c
f634481e940421020e52f511c1fb34aac1db4b2f 15-Dec-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Initialize default reference buffers for all pictures

Reference buffer is now initialized to default value for
each pic before decoding the first slice in the pic

Bug: 34097866
Change-Id: Id64b123af2188217ce833f11db0e6c0681d41dfd
/external/libavc/decoder/ih264d_parse_slice.c
5a26569fa398609c017249e3e93a3384be867208 18-Jan-2017 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases
am: 1d5640f2f9

Change-Id: I32e960c752ccbc991f8ce04455618a534f1f52c7
43a184ad481e2346f03f1398af74c04a3bb46e4d 18-Jan-2017 Ray Essick <essick@google.com> Merge "Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases" into mnc-dev
274529d8aa9ea5e2129f8d9798c0aa9ef93c097c 18-Jan-2017 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Fix in checking first_mb_in_slice
am: ef27433ca8

Change-Id: Ic27ccbbcad3d991862b7e680595ab0ae4fd23eb0
ef27433ca86c4084f0cff3e284f9e799c3fdfbec 16-Jan-2017 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Fix in checking first_mb_in_slice

Also, increment slice header only if previous slice had atleast one MB
This is to ensure there is no out of bound read for streams with 1 MB, and
due to error 2 slices were being accessed.

Bug: 33982658
Change-Id: I5f1918c09e922ca39f495f6059dfea3fa1d49448
/external/libavc/decoder/ih264d_parse_slice.c
1d5640f2f9013e8de68cedc3e57a6b02b495b3c2 15-Dec-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases

Bug: 34097213
Bug: 33641588
Change-Id: I40a6c5af7f1e46e1623ae1b399db3073123390fe
/external/libavc/decoder/ih264d_parse_slice.c
02f663b3c2eb2c13f77e43f7ec1219e5ce0f362d 22-Sep-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Fixes for handling errors in multi-slice MB Aff streams
am: bc71ad2d43

Change-Id: Ibcbdbb3c4473b3199abff8d47444e59416589695
bc71ad2d43dc03b2a71e3423da5385ed3cb9799a 17-Sep-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Fixes for handling errors in multi-slice MB Aff streams

Initialize default reference buffer for erroneous interlaced clips
Pick slice_type from decode thread slice structure
Call start_of_pic only once

Bug: 30822755
Change-Id: I553c646446d99a626d62351aa1b385355191cdc3
/external/libavc/decoder/ih264d_parse_slice.c
c73e0006657b83dc3ea030e75e60194fd6d0628b 21-Jun-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Merge \"Decoder: Initialize first_pb_nal_in_pic for error slices\" into mnc-dev
am: b9d7cba8bf

Change-Id: I62f9c45eea70968942198b20f47c158dede39d8d
b9d7cba8bf0ad47bf0b0faae5bb53a13e23006a2 21-Jun-2016 Robert Shih <robertshih@google.com> Merge "Decoder: Initialize first_pb_nal_in_pic for error slices" into mnc-dev
7a54468cf8b56745d371baf83694c87a563907fc 13-Jun-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Initialize first_pb_nal_in_pic for error slices

first_pb_nal_in_pic was uninitialized for error clips

Bug: 29023649

Change-Id: Ie4e0a94059c5f675bf619e31534846e2c2ca58ae
/external/libavc/decoder/ih264d_parse_slice.c
d75185f90ea95515aaa56c79e2d879fc8de253a0 10-Jun-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Merge \"Decoder: Fix slice number increment for error clips\" into mnc-dev
am: 2e88a2aa67

Change-Id: I791c029e3b39202db3f49f13fbb511904b5e8fef
2e88a2aa6788d559c5cf3a2f19c6ec4d5780518b 10-Jun-2016 Marco Nelissen <marcone@google.com> Merge "Decoder: Fix slice number increment for error clips" into mnc-dev
5e4f64c0748095266e48f7f6663d9ce59738ad83 01-Jun-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Fix slice number increment for error clips

Bug: 28673410
/external/libavc/decoder/ih264d_parse_slice.c
129a6006b424c1e044c74c023dee4e7aff490219 23-May-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Initialize slice parameters before concealing error MBs
am: 33db7a0f4e

* commit '33db7a0f4e5e2eb937a17b550ff8092a13f929a3':
Decoder: Initialize slice parameters before concealing error MBs

Change-Id: I91b5e507d6871e523add85ed774c5de2b85fcf18
33db7a0f4e5e2eb937a17b550ff8092a13f929a3 20-Apr-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Initialize slice parameters before concealing error MBs

Also memset ps_dec_op structure to zero.
For error input, this ensures dimensions are initialized to zero

Bug: 28165661
Change-Id: I66eb2ddc5e02e74b7ff04da5f749443920f37141
/external/libavc/decoder/ih264d_parse_slice.c
251b007eccf5a0ddac897ce27de88d3901bc5d00 04-Aug-2015 Harish Mahendrakar <harish.mahendrakar@ittiam.com> 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
/external/libavc/decoder/ih264d_parse_slice.c
086dd8ea90eaf4ead8b4927e777b1c8a19bd23a9 12-Jun-2015 Martin Storsjo <martin@martin.st> Don't declare variables after statements

This fixes building with compilers that are strict about the pre-C99
rule about having all variable declarations before statements.

Change-Id: I06dd0cc42a6dbe90025c3c913a0c8d9ffb0acbcb
/external/libavc/decoder/ih264d_parse_slice.c
9f0dcba9b4f792aedf37b6ecdceae46d36b93068 09-Jun-2015 Hamsalekha S <hamsalekha.s@ittiam.com> Improved error resilience in decoder

Fixed buffer management for error cases
Fixed end of picture detection logic for multiple slice error cases
Fixed handling of incomplete frame, missing slices.

Change-Id: Iae447667e4d88869a8bf992180cacd77870b9877
/external/libavc/decoder/ih264d_parse_slice.c
8ef4c3f6142028732a155cbfc1febd6ef5da72fd 03-Jun-2015 Marco Nelissen <marcone@google.com> Multithreading changes and better error resilience

Fixed the following bugs
Issue 21145276
Issue 21144884
Issue 21181133
Issue 21181134

Decoder now returns error if the level in stream is higher than level at init

Change-Id: I8892c62bd98f7854d046510330c05a1e9ca826b2
/external/libavc/decoder/ih264d_parse_slice.c
a2b49e5f0574dee76f81507f288143d83a4b7c1a 18-Apr-2015 Lajos Molnar <lajos@google.com> fix file permissions

Change-Id: Ia4f99d5b963acd8d8a1afc2fbdf06b122d898f63
/external/libavc/decoder/ih264d_parse_slice.c
8d3d303c7942ced6a987a52db8977d768dc3605f 13-Mar-2015 Hamsalekha S <hamsalekha.s@ittiam.com> Initial version

Change-Id: I7efe9a589cd24edf86e8d086b40c27cbbf8b4017
/external/libavc/decoder/ih264d_parse_slice.c