Commit graph

1007 commits

Author SHA1 Message Date
Harish Mahendrakar
700fa812a9 Fix in returning end of bitstream error for MBAFF am: 7950bf47b6 am: 73f74a84e1 am: f23ebcfab1 am: c8b03b10df am: 2785504d50
am: 20ae3a04eb

Change-Id: Ie184c9c66da527a3ec5e68476d370a61431268f1
2017-02-13 19:34:49 +00:00
Harish Mahendrakar
20ae3a04eb Fix in returning end of bitstream error for MBAFF am: 7950bf47b6 am: 73f74a84e1 am: f23ebcfab1 am: c8b03b10df
am: 2785504d50

Change-Id: Ib2a3100e8ddbf947a3b2634d63f72104af8a22d1
2017-02-13 19:31:50 +00:00
Harish Mahendrakar
2785504d50 Fix in returning end of bitstream error for MBAFF am: 7950bf47b6 am: 73f74a84e1 am: f23ebcfab1
am: c8b03b10df

Change-Id: Ife3b0ade038472f264b21298313614f01d3fcd59
2017-02-13 19:28:49 +00:00
Harish Mahendrakar
c8b03b10df Fix in returning end of bitstream error for MBAFF am: 7950bf47b6 am: 73f74a84e1
am: f23ebcfab1

Change-Id: I7569514affdf083c0f439cc23a84f6cf93df0ffa
2017-02-13 19:26:20 +00:00
Harish Mahendrakar
f23ebcfab1 Fix in returning end of bitstream error for MBAFF am: 7950bf47b6
am: 73f74a84e1

Change-Id: Iac07d54ca71b79f6380c3f5c3d4106838bb76642
2017-02-13 19:23:18 +00:00
Harish Mahendrakar
73f74a84e1 Fix in returning end of bitstream error for MBAFF
am: 7950bf47b6

Change-Id: If45518b6d58c393313dbcb425f7aa2e7bec02056
2017-02-13 19:20:47 +00:00
Harish Mahendrakar
7950bf47b6 Fix in returning end of bitstream error for MBAFF
In case of MBAFF streams, slices should terminate on
even MB boundary. If bytes are exhausted with odd number
of MBs decoded for MBAff, then treat that as error.

Bug: 33933140

Change-Id: Ifc26b66ff8ebdb3aec5c0d6c512e4cac3f54c5b7
2017-02-13 19:14:18 +00:00
Harish Mahendrakar
9801d7e8d5 Decoder: Fixes an out of bound write in bitstream buffer am: 33ef7de9dd am: 0aab4958fb am: 9f72b6eca1 am: 73a3e320d8
am: 89377f2acf

Change-Id: I5d73f67dd377bf7f180701b6a6faaa4ce556271c
2017-02-13 18:54:46 +00:00
Harish Mahendrakar
89377f2acf Decoder: Fixes an out of bound write in bitstream buffer am: 33ef7de9dd am: 0aab4958fb am: 9f72b6eca1
am: 73a3e320d8

Change-Id: Id06cfbad9824a7921e4eb082417f14aa842bcfab
2017-02-13 18:52:16 +00:00
Harish Mahendrakar
73a3e320d8 Decoder: Fixes an out of bound write in bitstream buffer am: 33ef7de9dd am: 0aab4958fb
am: 9f72b6eca1

Change-Id: I3f25b86b4ad13ad3b7e9a85e51789145d4b1b0ab
2017-02-13 18:49:46 +00:00
Harish Mahendrakar
9f72b6eca1 Decoder: Fixes an out of bound write in bitstream buffer am: 33ef7de9dd
am: 0aab4958fb

Change-Id: Ia5020ba3bfb95390578a82c602d71865443f1c00
2017-02-13 18:47:15 +00:00
Harish Mahendrakar
0aab4958fb Decoder: Fixes an out of bound write in bitstream buffer
am: 33ef7de9dd

Change-Id: If2ca8f044536549a32df1400c12099fa6bc562f1
2017-02-13 18:44:45 +00:00
Harish Mahendrakar
33ef7de9dd Decoder: Fixes an out of bound write in bitstream buffer
[for mnc-dr-dev and later;  mnc-dev gets a different patch]

After emulation prevention, data is written as an int,
so at least 3 additional bytes should be available.
And since bitstream functions read 8 bytes ahead, 8 extra bytes
should be available in the bitstream buffer.

Bug: 33934721

Change-Id: I444ec6f85d01b0bade9f827e15c4b476779d6c69
2017-01-19 09:17:00 -08:00
Ray Essick
a7717aeb5f Merge "Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases" into mnc-dev am: 43a184ad48 am: ab0e425406 am: ecfc52702b am: 9b41bebc84 am: 2131a8fa75
am: d76bde3400

Change-Id: Ia4bf9b2a3002312ceb1a0cd3cf350e9f10399080
2017-01-18 21:22:06 +00:00
Harish Mahendrakar
d41032215c Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases am: 1d5640f2f9 am: 5a26569fa3 am: 18a58ec2b6 am: 575fdb281f am: f8b3e57266
am: afbbd8f654

Change-Id: I0b71ea48f9709cedc505b2b92b5a95d78a11c45c
2017-01-18 21:21:58 +00:00
Ray Essick
d76bde3400 Merge "Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases" into mnc-dev am: 43a184ad48 am: ab0e425406 am: ecfc52702b am: 9b41bebc84
am: 2131a8fa75

Change-Id: I8dd9fdf27bfb246c0b2c026ecad99401758160f2
2017-01-18 21:20:20 +00:00
Harish Mahendrakar
afbbd8f654 Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases am: 1d5640f2f9 am: 5a26569fa3 am: 18a58ec2b6 am: 575fdb281f
am: f8b3e57266

Change-Id: I7600f4b34e8e40d5118d04fdafed6f3a5b589c66
2017-01-18 21:20:13 +00:00
Ray Essick
2131a8fa75 Merge "Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases" into mnc-dev am: 43a184ad48 am: ab0e425406 am: ecfc52702b
am: 9b41bebc84

Change-Id: I3da0bb96788c08cc08ff46d1ec29eff08926dfcc
2017-01-18 21:17:49 +00:00
Harish Mahendrakar
f8b3e57266 Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases am: 1d5640f2f9 am: 5a26569fa3 am: 18a58ec2b6
am: 575fdb281f

Change-Id: I735691b67ab0b41a8560b0bdd9aaaa5a3947b5d7
2017-01-18 21:17:41 +00:00
Ray Essick
9b41bebc84 Merge "Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases" into mnc-dev am: 43a184ad48 am: ab0e425406
am: ecfc52702b

Change-Id: Ib22f7ac401bc0c07409d25183d83e02eeb9b53ec
2017-01-18 21:15:21 +00:00
Harish Mahendrakar
575fdb281f Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases am: 1d5640f2f9 am: 5a26569fa3
am: 18a58ec2b6

Change-Id: Ie325272d32387de3902c7a6c88072b4e27264808
2017-01-18 21:15:11 +00:00
Ray Essick
ecfc52702b Merge "Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases" into mnc-dev am: 43a184ad48
am: ab0e425406

Change-Id: I1174c079ff971a216438395ee42338a3fa151716
2017-01-18 21:13:19 +00:00
Harish Mahendrakar
18a58ec2b6 Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases am: 1d5640f2f9
am: 5a26569fa3

Change-Id: Idd2a9b5a617326d2ee38908ba768085dad257f04
2017-01-18 21:13:12 +00:00
Ray Essick
ab0e425406 Merge "Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases" into mnc-dev
am: 43a184ad48

Change-Id: I8886826d4c30c0dbfe0ace25ca87cca3fa015c7e
2017-01-18 21:11:12 +00:00
Harish Mahendrakar
5a26569fa3 Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases
am: 1d5640f2f9

Change-Id: I32e960c752ccbc991f8ce04455618a534f1f52c7
2017-01-18 21:11:11 +00:00
Ray Essick
43a184ad48 Merge "Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases" into mnc-dev 2017-01-18 21:00:19 +00:00
Marco Nelissen
fd48a7e788 Merge "DO NOT MERGE Decoder: Increase memory allocation for weights & offsets for interlaced clips" into mnc-dev am: d5424f66e3 am: ce26193738 am: 7d4a72d887 am: 2d7b4c6275 -s ours am: 583dde3e87
am: 875b8fc080

Change-Id: I642c6d2d46248f5198e65814a2a0464d5e9777fc
2017-01-18 19:02:18 +00:00
Harish Mahendrakar
2e91a0d804 DO NOT MERGE Decoder: Increase memory allocation for weights & offsets for interlaced clips am: 74f03b639e -s ours am: 4aa4a30de2 am: d6086cb6ed am: 22dfe1492b -s ours am: 0ba81a83e9
am: 88475aa7fb

Change-Id: If4870748c257a892f8c9d9499373f70f05c0e1f7
2017-01-18 19:02:11 +00:00
Marco Nelissen
875b8fc080 Merge "DO NOT MERGE Decoder: Increase memory allocation for weights & offsets for interlaced clips" into mnc-dev am: d5424f66e3 am: ce26193738 am: 7d4a72d887 am: 2d7b4c6275 -s ours
am: 583dde3e87

Change-Id: If60590acc6fb68209dca3705c73a0528a8474ec3
2017-01-18 18:59:34 +00:00
Harish Mahendrakar
88475aa7fb DO NOT MERGE Decoder: Increase memory allocation for weights & offsets for interlaced clips am: 74f03b639e -s ours am: 4aa4a30de2 am: d6086cb6ed am: 22dfe1492b -s ours
am: 0ba81a83e9

Change-Id: I1e760eea58aa2f8706170db34418ee57a3dfab47
2017-01-18 18:59:27 +00:00
Marco Nelissen
583dde3e87 Merge "DO NOT MERGE Decoder: Increase memory allocation for weights & offsets for interlaced clips" into mnc-dev am: d5424f66e3 am: ce26193738 am: 7d4a72d887
am: 2d7b4c6275  -s ours

Change-Id: I7fe8389dc6d2b2a81f8bd3bbd24c6b7d39f44851
2017-01-18 18:58:04 +00:00
Harish Mahendrakar
0ba81a83e9 DO NOT MERGE Decoder: Increase memory allocation for weights & offsets for interlaced clips am: 74f03b639e -s ours am: 4aa4a30de2 am: d6086cb6ed
am: 22dfe1492b  -s ours

Change-Id: Id96df20417c1d086374b41d37f09a7a9b65f486c
2017-01-18 18:57:57 +00:00
Marco Nelissen
2d7b4c6275 Merge "DO NOT MERGE Decoder: Increase memory allocation for weights & offsets for interlaced clips" into mnc-dev am: d5424f66e3 am: ce26193738
am: 7d4a72d887

Change-Id: I6165218e94a8e84c1063a35ace45b47d7a794a8c
2017-01-18 18:56:05 +00:00
Harish Mahendrakar
22dfe1492b DO NOT MERGE Decoder: Increase memory allocation for weights & offsets for interlaced clips am: 74f03b639e -s ours am: 4aa4a30de2
am: d6086cb6ed

Change-Id: I88ac76072c6c47a48d1faae6914693a1c553664e
2017-01-18 18:55:57 +00:00
Marco Nelissen
7d4a72d887 Merge "DO NOT MERGE Decoder: Increase memory allocation for weights & offsets for interlaced clips" into mnc-dev am: d5424f66e3
am: ce26193738

Change-Id: I10906db63e6b8a747a2b5d3400132492b59d0e67
2017-01-18 18:54:04 +00:00
Harish Mahendrakar
d6086cb6ed DO NOT MERGE Decoder: Increase memory allocation for weights & offsets for interlaced clips am: 74f03b639e -s ours
am: 4aa4a30de2

Change-Id: I2a9fda1380d536f4a0353e6abe69d84519be0efe
2017-01-18 18:53:56 +00:00
Marco Nelissen
ce26193738 Merge "DO NOT MERGE Decoder: Increase memory allocation for weights & offsets for interlaced clips" into mnc-dev
am: d5424f66e3

Change-Id: Id752d251dda25afb5bd70f1d21b1e6b1bb14b631
2017-01-18 18:51:57 +00:00
Harish Mahendrakar
4aa4a30de2 DO NOT MERGE Decoder: Increase memory allocation for weights & offsets for interlaced clips
am: 74f03b639e  -s ours

Change-Id: If7fe4b318a65a452068b79ee1bc6577ea701ebe5
2017-01-18 18:51:57 +00:00
Marco Nelissen
d5424f66e3 Merge "DO NOT MERGE Decoder: Increase memory allocation for weights & offsets for interlaced clips" into mnc-dev 2017-01-18 18:42:47 +00:00
Marco Nelissen
6eb621fcf4 Merge "Decoder: Fix in checking first_mb_in_slice" into mnc-dev am: 78523d557a am: 11e48510ee am: de511dec6e am: 434dd14705 am: 0336219164
am: f9de8bd837

Change-Id: Iaf4191ca21ef6199ca2cef78690b69d6ba7b95f2
2017-01-18 18:27:46 +00:00
Harish Mahendrakar
7543cc871c Decoder: Fix in checking first_mb_in_slice am: ef27433ca8 am: 274529d8aa am: 3c332522de am: 10f63a26aa am: de892335ff
am: a917df6ae0

Change-Id: I3d4e9cb9756f10934b46e522db3c468ba01c4b6d
2017-01-18 18:27:39 +00:00
Marco Nelissen
f9de8bd837 Merge "Decoder: Fix in checking first_mb_in_slice" into mnc-dev am: 78523d557a am: 11e48510ee am: de511dec6e am: 434dd14705
am: 0336219164

Change-Id: I98140c98d3efbf368e2fc2b2ed3de1600e661336
2017-01-18 18:26:32 +00:00
Harish Mahendrakar
a917df6ae0 Decoder: Fix in checking first_mb_in_slice am: ef27433ca8 am: 274529d8aa am: 3c332522de am: 10f63a26aa
am: de892335ff

Change-Id: I1498d2411e0205532d8712de860f35d6a974d9bf
2017-01-18 18:26:25 +00:00
Marco Nelissen
0336219164 Merge "Decoder: Fix in checking first_mb_in_slice" into mnc-dev am: 78523d557a am: 11e48510ee am: de511dec6e
am: 434dd14705

Change-Id: Ic469ed572f829bd88774d476e485d9fa8ec3f072
2017-01-18 18:24:02 +00:00
Harish Mahendrakar
de892335ff Decoder: Fix in checking first_mb_in_slice am: ef27433ca8 am: 274529d8aa am: 3c332522de
am: 10f63a26aa

Change-Id: If16c94f38fe3a1d064e684ed1a5b38434d1ddb5e
2017-01-18 18:23:55 +00:00
Marco Nelissen
434dd14705 Merge "Decoder: Fix in checking first_mb_in_slice" into mnc-dev am: 78523d557a am: 11e48510ee
am: de511dec6e

Change-Id: I79ca2b3be0afe65dc8fd33c893ae175eddb84686
2017-01-18 18:22:31 +00:00
Harish Mahendrakar
10f63a26aa Decoder: Fix in checking first_mb_in_slice am: ef27433ca8 am: 274529d8aa
am: 3c332522de

Change-Id: I29ca8202e2d8aef23f16e3974ae6f563ef8dc85f
2017-01-18 18:22:24 +00:00
Marco Nelissen
de511dec6e Merge "Decoder: Fix in checking first_mb_in_slice" into mnc-dev am: 78523d557a
am: 11e48510ee

Change-Id: Ied98c92a625d59b7f96cd0a8cc6fc0877aed8cbc
2017-01-18 18:20:31 +00:00
Harish Mahendrakar
3c332522de Decoder: Fix in checking first_mb_in_slice am: ef27433ca8
am: 274529d8aa

Change-Id: I2a495130b4fe30f917a8490a96577f526e9e5b8f
2017-01-18 18:20:24 +00:00
Marco Nelissen
11e48510ee Merge "Decoder: Fix in checking first_mb_in_slice" into mnc-dev
am: 78523d557a

Change-Id: Ic0f4f9f01614c91acb3892cf398cd3f58827970c
2017-01-18 18:18:25 +00:00