You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
cosmetics, reindent, remove useless braces, whitespaces
Originally committed as revision 19002 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -622,27 +622,26 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
|
|||||||
stream_type, pid);
|
stream_type, pid);
|
||||||
|
|
||||||
/* now create ffmpeg stream */
|
/* now create ffmpeg stream */
|
||||||
if(ts->pids[pid] && ts->pids[pid]->type == MPEGTS_PES){
|
if (ts->pids[pid] && ts->pids[pid]->type == MPEGTS_PES) {
|
||||||
pes= ts->pids[pid]->u.pes_filter.opaque;
|
pes= ts->pids[pid]->u.pes_filter.opaque;
|
||||||
st= pes->st;
|
st= pes->st;
|
||||||
}else{
|
} else {
|
||||||
if (ts->pids[pid]) mpegts_close_filter(ts, ts->pids[pid]); //wrongly added sdt filter probably
|
if (ts->pids[pid]) mpegts_close_filter(ts, ts->pids[pid]); //wrongly added sdt filter probably
|
||||||
pes = add_pes_stream(ts, pid, pcr_pid, stream_type);
|
pes = add_pes_stream(ts, pid, pcr_pid, stream_type);
|
||||||
if (pes)
|
if (pes)
|
||||||
st = new_pes_av_stream(pes, 0);
|
st = new_pes_av_stream(pes, 0);
|
||||||
}
|
}
|
||||||
add_pid_to_pmt(ts, h->id, pid);
|
|
||||||
if(st)
|
|
||||||
av_program_add_stream_index(ts->stream, h->id, st->index);
|
|
||||||
|
|
||||||
if (st) {
|
add_pid_to_pmt(ts, h->id, pid);
|
||||||
if (language[0] != 0) {
|
|
||||||
|
if(st) {
|
||||||
|
av_program_add_stream_index(ts->stream, h->id, st->index);
|
||||||
|
|
||||||
|
if (language[0] != 0)
|
||||||
av_metadata_set(&st->metadata, "language", language);
|
av_metadata_set(&st->metadata, "language", language);
|
||||||
}
|
|
||||||
|
|
||||||
if (stream_type == STREAM_TYPE_SUBTITLE_DVB) {
|
if (stream_type == STREAM_TYPE_SUBTITLE_DVB)
|
||||||
st->codec->sub_id = (anc_page << 16) | comp_page;
|
st->codec->sub_id = (anc_page << 16) | comp_page;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* all parameters are there */
|
/* all parameters are there */
|
||||||
|
Reference in New Issue
Block a user