muxers: ignore the NULL payload
This commit is contained in:
parent
362fb68002
commit
ce2fc637b6
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue