@@ -45,9 +45,9 @@ struct AllocSize {
45
45
* @copyright GPLv3
46
46
*/
47
47
48
- class MTSDecoder1 : public AudioDecoder {
48
+ class MTSDecoder : public AudioDecoder {
49
49
public:
50
- MTSDecoder1 () {
50
+ MTSDecoder () {
51
51
self = this ;
52
52
};
53
53
@@ -111,7 +111,7 @@ class MTSDecoder1 : public AudioDecoder {
111
111
112
112
size_t write (const uint8_t *data, size_t len) override {
113
113
if (!is_active) return 0 ;
114
- LOGD (" MTSDecoder1 ::write: %d" , (int )len);
114
+ LOGD (" MTSDecoder ::write: %d" , (int )len);
115
115
size_t result = buffer.writeArray ((uint8_t *)data, len);
116
116
// demux
117
117
demux (underflowLimit);
@@ -150,7 +150,7 @@ class MTSDecoder1 : public AudioDecoder {
150
150
}
151
151
152
152
protected:
153
- static MTSDecoder1 *self;
153
+ static MTSDecoder *self;
154
154
int underflowLimit = MTS_UNDERFLOW_LIMIT;
155
155
bool is_active = false ;
156
156
bool is_write_active = false ;
@@ -248,8 +248,8 @@ class MTSDecoder1 : public AudioDecoder {
248
248
static void event_cb (TSDemuxContext *ctx, uint16_t pid, TSDEventId event_id,
249
249
void *data) {
250
250
TRACED ();
251
- if (MTSDecoder1 ::self != nullptr ) {
252
- MTSDecoder1 ::self->event_cb_local (ctx, pid, event_id, data);
251
+ if (MTSDecoder ::self != nullptr ) {
252
+ MTSDecoder ::self->event_cb_local (ctx, pid, event_id, data);
253
253
}
254
254
}
255
255
@@ -292,6 +292,8 @@ class MTSDecoder1 : public AudioDecoder {
292
292
// we should not get here
293
293
TRACEE ();
294
294
}
295
+ if ()
296
+
295
297
}
296
298
}
297
299
}
@@ -963,6 +965,6 @@ class MTSDecoder1 : public AudioDecoder {
963
965
964
966
};
965
967
// init static variable
966
- MTSDecoder1 *MTSDecoder1 ::self = nullptr ;
968
+ MTSDecoder *MTSDecoder ::self = nullptr ;
967
969
968
970
} // namespace audio_tools
0 commit comments