Skip to content
Permalink
Browse files

Fixes #1077 by adding check for empty streams (#1079)

  • Loading branch information...
thelastpolaris authored and cfsmp3 committed Mar 9, 2019
1 parent 9f30827 commit ab4f3d0d260d08fd925d07d076fb675fb5122bee
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/lib_ccx/ts_info.c
@@ -131,7 +131,8 @@ int get_best_stream(struct ccx_demuxer *ctx)

list_for_each_entry(iter, &ctx->cinfo_tree.all_stream, all_stream, struct cap_info)
{
if(iter->codec == CCX_CODEC_ATSC_CC)
// If saw_pesstart is 0 then stream doesn't have payload. Helps against empty streams
if(iter->codec == CCX_CODEC_ATSC_CC && iter->saw_pesstart)
return iter->pid;
}

0 comments on commit ab4f3d0

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.