Browse Source

TT#14008 use encoder's codec_def instead of parent handler's

closes #1203

Change-Id: I6e39d44aec1ae84595a6da30ab7ab365de4db9ad
(cherry picked from commit ff034ff307)
mr9.3
Richard Fuchs 5 years ago
parent
commit
a6992eadc5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/codec.c

+ 1
- 1
daemon/codec.c View File

@ -2767,7 +2767,7 @@ static int packet_encoded_rtp(encoder_t *enc, void *u1, void *u2) {
// and request a packet // and request a packet
if (in_pkt) if (in_pkt)
ilogs(transcoding, LOG_DEBUG, "Adding %i bytes to packetizer", in_pkt->size); ilogs(transcoding, LOG_DEBUG, "Adding %i bytes to packetizer", in_pkt->size);
int ret = ch->handler->dest_pt.codec_def->packetizer(in_pkt,
int ret = enc->def->packetizer(in_pkt,
ch->sample_buffer, &inout, enc); ch->sample_buffer, &inout, enc);
if (G_UNLIKELY(ret == -1 || enc->avpkt.pts == AV_NOPTS_VALUE)) { if (G_UNLIKELY(ret == -1 || enc->avpkt.pts == AV_NOPTS_VALUE)) {


Loading…
Cancel
Save