mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
mpegts: Fix typo in handling sections in the PMT.
This was an error rebasing 4682a1dc3a
for
commit. The "pes" variable guaranteed to be NULL in that block.
This commit is contained in:
parent
b797f73520
commit
d9b89b23df
@ -1460,7 +1460,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
|
||||
if (idx >= 0) {
|
||||
st = ts->stream->streams[idx];
|
||||
} else {
|
||||
st = avformat_new_stream(pes->stream, NULL);
|
||||
st = avformat_new_stream(ts->stream, NULL);
|
||||
st->id = pid;
|
||||
st->codec->codec_type = AVMEDIA_TYPE_DATA;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user