onBufferReleased is no longer reliable indicator of capture
error due to HAL buffer manager feature. Switch to listen
to error callback from HAL directly.
Test: API1 CTS + Pixel 3
Bug: 123952355
Change-Id: I7362942f19356583ec66f259b01e963a1af3a205
when audio tear down happens, audio gets flushed and seek is issued.
If video is not flushed before seek, previous video buffers will be
rendered and leads to A/V sync issue. Hence call video flush.
Bug: 70919418
Test: MediaPlayer2Test
Change-Id: I66b6f8e024f29e797a89e68d52c819cddbf37016
Problem: ac-3 bit stream identification parse error
Solution: skip audio track if ac-3 is not correct
Bug: 122746530
Test: Play the video file whose ac-3 is not correct
and check if it can skip audio and only play video
track
Change-Id: I402781a9d7057fd24666652b015d25cc11efa7bd
This reverts commit 293eb84e30.
Reason for revert: the new property is no longer needed.
Bug: 124128094
Test: m on marlin
The extractor libs are found under /system/apex/com.android.media
Change-Id: I1c25ff7b94f64ac995bae37fb21d79fd8230e212
there is a clamping value in getDurationUsIfPlayedAtSampleRate function
numFrames parameter is uint32_t type. when return value, cast uint32_t to int32_t.
that make clamp value of numFrames
Test: compiles
Bug: 123665692
Change-Id: I12e35df3030659bc10b3e86ed9d1712be6b62a88
when audio tear down happens, audio gets flushed and seek is issued.
If video is not flushed before seek, previous video buffers will be
rendered and leads to A/V sync issue. Hence call video flush.
Author: Cong Jiajia <jcong@codeaurora.org>
Bug: 70919418
Test: MediaPlayerTest
Change-Id: I01f744c1eae99a1d0f81ca84f536d493a2a54b01
The default behavior has been no B-frames for AVC encoders, and it
should stay that way. The explicit setting for enabling the feature
is under discussion.
Bug: 122855205
Test: builds
Change-Id: I76bae5ad78ef9ecbfadecc64c3bd4e9eb8f58011
Formats should not be written after it's shared with the client. When
update is needed, duplicate the format to avoid race condition.
Bug: 122987730
Test: run MediaMetadataRetrieverTest#testGetFramesAtIndex for 1000 times
Test: atest CtsMediaTestCases -- --module-arg CtsMediaTestCases:size:small
Change-Id: I6abb5526d8df1e57b70c96f5b32d132e4a5de389
Problem: some mp4 file has abnormal nal size and cannot
be played.
Solution: ignore when nal size is abnormal
Bug: 122749422
Test: Play a file which has abnormal nal size and check
if it can ignore abnormal ones and play normally after
abnormal frames
Change-Id: Ic0a53d20ea7e395ab610b8d4895dd3c64ab68106