1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +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:
Baptiste Coudurier
2009-05-31 00:33:37 +00:00
parent 64ab5fa3df
commit 40b0872a56

View File

@@ -631,20 +631,19 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
if (pes)
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) {
if (language[0] != 0) {
av_metadata_set(&st->metadata, "language", language);
}
av_program_add_stream_index(ts->stream, h->id, st->index);
if (stream_type == STREAM_TYPE_SUBTITLE_DVB) {
if (language[0] != 0)
av_metadata_set(&st->metadata, "language", language);
if (stream_type == STREAM_TYPE_SUBTITLE_DVB)
st->codec->sub_id = (anc_page << 16) | comp_page;
}
}
}
/* all parameters are there */
ts->stop_parse++;
mpegts_close_filter(ts, filter);