Skip to content

fix stream size MediaArea/MediaInfo#505#2533

Open
almirus wants to merge 1 commit intoMediaArea:masterfrom
almirus:fix-505
Open

fix stream size MediaArea/MediaInfo#505#2533
almirus wants to merge 1 commit intoMediaArea:masterfrom
almirus:fix-505

Conversation

@almirus
Copy link

@almirus almirus commented Feb 17, 2026

Fix: Stream size for TrueHD+AC3 in M2TS
Problem: For M2TS streams that carry both Dolby TrueHD and an embedded AC‑3 core in one PID, Stream size was reported for the AC‑3 part only instead of the full stream.
Solution: When the AC‑3 parser is used as a sub‑parser, the total number of bytes passed to it is accumulated. That value is used for Stream size only when an AC‑3 core is present (TrueHD+AC3). For TrueHD‑only tracks (e.g. in MKV), Stream size is left to the container so it stays correct.
Result: Stream size for TrueHD+AC3 in M2TS now matches the demuxed track size; TrueHD‑only streams are unchanged.

(cherry picked from commit 2202d19)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant