Browse Source

TT#75352 don't attempt to send uninitialised packets

This can presumably happen when an encoder gets re-initialised due to an
SSRC table overflow, or when a passthrough encoder (e.g. G.729) returns
no data.

Possibly fixes #915

Change-Id: Ib351054b99754f46d0a8fb2d49629ce7c48dc964
changes/22/37322/3
Richard Fuchs 6 years ago
parent
commit
38792c00a5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/codec.c

+ 1
- 1
daemon/codec.c View File

@ -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;


Loading…
Cancel
Save