Skip to content

Commit 227e5a9

Browse files
committed
MTSDecoder
1 parent 329202e commit 227e5a9

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/AudioTools/AudioCodecs/CodecTSDemux.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ struct AllocSize {
4545
* @copyright GPLv3
4646
*/
4747

48-
class MTSDecoder1 : public AudioDecoder {
48+
class MTSDecoder : public AudioDecoder {
4949
public:
50-
MTSDecoder1() {
50+
MTSDecoder() {
5151
self = this;
5252
};
5353

@@ -111,7 +111,7 @@ class MTSDecoder1 : public AudioDecoder {
111111

112112
size_t write(const uint8_t *data, size_t len) override {
113113
if (!is_active) return 0;
114-
LOGD("MTSDecoder1::write: %d", (int)len);
114+
LOGD("MTSDecoder::write: %d", (int)len);
115115
size_t result = buffer.writeArray((uint8_t*)data, len);
116116
// demux
117117
demux(underflowLimit);
@@ -150,7 +150,7 @@ class MTSDecoder1 : public AudioDecoder {
150150
}
151151

152152
protected:
153-
static MTSDecoder1 *self;
153+
static MTSDecoder *self;
154154
int underflowLimit = MTS_UNDERFLOW_LIMIT;
155155
bool is_active = false;
156156
bool is_write_active = false;
@@ -248,8 +248,8 @@ class MTSDecoder1 : public AudioDecoder {
248248
static void event_cb(TSDemuxContext *ctx, uint16_t pid, TSDEventId event_id,
249249
void *data) {
250250
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);
253253
}
254254
}
255255

@@ -292,6 +292,8 @@ class MTSDecoder1 : public AudioDecoder {
292292
// we should not get here
293293
TRACEE();
294294
}
295+
if ()
296+
295297
}
296298
}
297299
}
@@ -963,6 +965,6 @@ class MTSDecoder1 : public AudioDecoder {
963965

964966
};
965967
// init static variable
966-
MTSDecoder1 *MTSDecoder1::self = nullptr;
968+
MTSDecoder *MTSDecoder::self = nullptr;
967969

968970
} // namespace audio_tools

0 commit comments

Comments
 (0)