Commit 3365a71
fix: Properly handle ATSC CC in private MPEG-2 streams
This commit fixes two issues:
1. ATSC CC data in private MPEG-2 streams (stream type 0x06) was not
being processed. The code returned CCX_PRIVATE_MPEG2_CC buffer type
which was never properly implemented - it just dumped debug output
and returned placeholder bytes.
Fix: Treat ATSC CC in private MPEG-2 streams the same as in
user-private streams (0x80-0x8F) by returning CCX_PES buffer type.
Both contain the same CC data format and should use the same
processing path.
2. Several dump() calls were using CCX_DMT_GENERIC_NOTICES which is
enabled by default, causing binary output to flood the terminal
when processing certain files.
Fix: Changed to appropriate debug-only masks (CCX_DMT_VERBOSE,
CCX_DMT_PARSE) so binary dumps only appear when debug mode is
explicitly enabled.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 26e0f64 commit 3365a71
3 files changed
+9
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
387 | 386 | | |
388 | 387 | | |
389 | 388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | 812 | | |
817 | 813 | | |
818 | 814 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
161 | 159 | | |
| 160 | + | |
162 | 161 | | |
163 | 162 | | |
164 | 163 | | |
| |||
567 | 566 | | |
568 | 567 | | |
569 | 568 | | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | 569 | | |
580 | 570 | | |
581 | 571 | | |
| |||
0 commit comments