Skip to content

Commit c25ed0b

Browse files
committed
MTSDecoder
1 parent a4485da commit c25ed0b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/AudioTools/AudioCodecs/CodecMTS.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ class MTSDecoder : public AudioDecoder {
9595
/// Start the prcessor
9696
bool begin() override {
9797
TRACED();
98-
if (p_dec) p_dec->begin();
99-
pmt_pid = 0xFFFF;
98+
pmt_pid = 0xFFFF; // undefined
10099
pes_count = 0;
101100
is_adts_missing = false;
102101
open_pes_data_size = 0;
@@ -113,9 +112,11 @@ class MTSDecoder : public AudioDecoder {
113112
end();
114113
}
115114

115+
if (p_dec) p_dec->begin();
116116
is_active = true;
117117
return true;
118118
}
119+
119120
/// Stops the processing
120121
void end() override {
121122
TRACED();

0 commit comments

Comments
 (0)