History

avformat/avformat: remove AVFormatContext.ts_id

It's been replaced by a demuxer exported private option.

James Almer committed 2 years ago

Commit 53cdf941 parent 823d60d2 files · +1 −7Browse files

Unified · Split

2 files
  1. libavformat/avformat.h +0 −6
  2. libavformat/mpegts.c +1 −1
libavformat/avformat.h+0−6
@@ -1591,12 +1591,6 @@ typedef struct AVFormatContext { · 1590 unmodified lines
1591#define AVFMT_AVOID_NEG_TS_MAKE_NON_NEGATIVE 1 ///< Shift timestamps so they are non negative1591#define AVFMT_AVOID_NEG_TS_MAKE_NON_NEGATIVE 1 ///< Shift timestamps so they are non negative
1592#define AVFMT_AVOID_NEG_TS_MAKE_ZERO 2 ///< Shift timestamps so that they start at 01592#define AVFMT_AVOID_NEG_TS_MAKE_ZERO 2 ///< Shift timestamps so that they start at 0
1593 1593
1594 /**
1595 * Transport stream id.
1596 * This will be moved into demuxer private options. Thus no API/ABI compatibility
1597 */
1598 int ts_id;
1599
1600 /**1594 /**
1601 * Audio preload in microseconds.1595 * Audio preload in microseconds.
1602 * Note, not all formats support this and unpredictable things may happen if it is used when not supported.1596 * Note, not all formats support this and unpredictable things may happen if it is used when not supported.
libavformat/mpegts.c+1−1
@@ -2561,7 +2561,7 @@ static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len · 2560 unmodified lines
2561 2561
2562 if (skip_identical(h, tssf))2562 if (skip_identical(h, tssf))
2563 return;2563 return;
2564 ts->stream->ts_id = ts->id = h->id;2564 ts->id = h->id;
2565 2565
2566 for (;;) {2566 for (;;) {
2567 sid = get16(&p, p_end);2567 sid = get16(&p, p_end);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t