diff --git a/daemon/codec.c b/daemon/codec.c index 8a9479172..5f608c2f5 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -1452,7 +1452,7 @@ static int __packet_encoded(encoder_t *enc, void *u1, void *u2) { int ret = ch->handler->dest_pt.codec_def->packetizer(in_pkt, ch->sample_buffer, &inout, enc); - if (G_UNLIKELY(ret == -1)) { + if (G_UNLIKELY(ret == -1 || enc->avpkt.pts == AV_NOPTS_VALUE)) { // nothing free(buf); break;