Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a17cf65e authored by Harish Mahendrakar's avatar Harish Mahendrakar
Browse files

C2SoftAvcDec: Fix interlaced input handling

C2 plugin for avc decoder is now updated to appropriately
handle both types of interlaced content, i.e. sent as one
field per one input buffer and sent as two fields per one
input

- Allow bytes consumed to be returned as zero to handle dangling fields
- Do not ignore trailing bytes after decode call as that data may
  contain next field
- Ensure input buffer contains at least 4 bytes
- After signalling new output delay, do not feed the input again

Bug: 135146280
Bug: 152087140
Test: poc in bugs
Test: atest android.media.cts.DecoderTest

Change-Id: I1f6a12878eeebb604a16f8e9edcdf3d631ef5afc
parent fd2fb97a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment