Skip to content

Commit

Permalink
Ignore some stream type with mpegts.
Browse files Browse the repository at this point in the history
  • Loading branch information
shamamayair committed Jan 3, 2024
1 parent c3c723b commit c5ad0d3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions nginx-mpegts-kmp-module/src/ngx_ts_kmp_track.c
Original file line number Diff line number Diff line change
Expand Up @@ -1710,18 +1710,19 @@ ngx_ts_kmp_track_create(ngx_ts_handler_data_t *hd)

codec_id = ngx_ts_kmp_track_get_codec(es);

if (codec_id == NGX_ERROR) {
switch (codec_id) {

case NGX_ERROR:
ngx_log_error(NGX_LOG_ERR, ts->log, 0,
"ngx_ts_kmp_track_create: invalid type %uD",
(uint32_t) es->type);
return NGX_ERROR;
}

if (codec_id == NGX_DONE) {
ngx_log_error(NGX_LOG_ERR, ts->log, 0,
"ngx_ts_kmp_track_create: ignored type %uD",
(uint32_t) es->type);
continue;
case NGX_DONE:
ngx_log_error(NGX_LOG_ERR, ts->log, 0,
"ngx_ts_kmp_track_create: ignored type %uD",
(uint32_t) es->type);
continue;
}

ts_track = ngx_ts_kmp_track_get(ctx, es->pid);
Expand Down

0 comments on commit c5ad0d3

Please sign in to comment.