Browse Source

MT#61822 fix missing duration scaling

Change-Id: If0ebc38a30575346e2aaf08df7b125005cda0d80
(cherry picked from commit 6a7cd32beb)
mr12.5
Richard Fuchs 11 months ago
parent
commit
ae560b9018
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      daemon/media_player.c

+ 3
- 2
daemon/media_player.c View File

@ -750,12 +750,13 @@ static void packet_encoded_cache(AVPacket *pkt, struct codec_ssrc_handler *ch, s
struct media_player_cache_packet *ep = g_slice_alloc0(sizeof(*ep));
long duration = fraction_divl(pkt->duration, cr_fact);
*ep = (__typeof__(*ep)) {
.buf = buf,
.s = *s,
.pts = pkt->pts,
.duration_ts = pkt->duration,
.duration = (long long) pkt->duration * 1000000LL
.duration_ts = duration,
.duration = (long long) duration * 1000000LL
/ entry->coder.handler->dest_pt.clock_rate,
};


Loading…
Cancel
Save