Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
muxers: ignore the NULL payload
  • Loading branch information
perexg committed Jan 31, 2015
1 parent 362fb68 commit ce2fc63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/muxer/muxer_libav.c
Expand Up @@ -403,6 +403,8 @@ lav_muxer_write_pkt(muxer_t *m, streaming_message_type_t smt, void *data)

if(st->id != pkt->pkt_componentindex)
continue;
if(pkt->pkt_payload == NULL)
continue;

av_init_packet(&packet);

Expand Down
2 changes: 1 addition & 1 deletion src/muxer/tvh/mkmux.c
Expand Up @@ -1188,7 +1188,7 @@ mk_mux_write_pkt(mk_mux_t *mkm, th_pkt_t *pkt)
break;
}

if(i >= mkm->ntracks) {
if(i >= mkm->ntracks || pkt->pkt_payload == NULL) {
pkt_ref_dec(pkt);
return mkm->error;
}
Expand Down

0 comments on commit ce2fc63

Please sign in to comment.