MediaCodecReader: Refine the "INFO_FORMAT_CHANGED" and "INFO_OUTPUT_BUFFERS_CHANGED".

RESOLVED INVALID

Status

()

Core
Audio/Video: Playback
RESOLVED INVALID
3 years ago
2 years ago

People

(Reporter: bechen, Assigned: bechen)

Tracking

Trunk
x86_64
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

3 years ago
I guess something wrong relative to format change about "INFO_FORMAT_CHANGED" and "INFO_OUTPUT_BUFFERS_CHANGED".

For example:
If the INFO_FORMAT_CHANGED comes from mCodec->dequeueOutputBuffer in GetCodecOutputData(), then we call UpdateAudioInfo/UpdateVideoInfo. It might falls into an infinite loop because we call mCodec->dequeueOutputBuffer again and expect that we should receive a INFO_FORMAT_CHANGED, but the INFO_FORMAT_CHANGED had been received by previous mCodec->dequeueOutputBuffer in GetCodecOutputData().

I will try to find some testing file to verify the code path.
Component: Audio/Video → Audio/Video: Playback
(Assignee)

Updated

2 years ago
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.