Skip to content

Commit

Permalink
MT#61822 fix missing duration scaling
Browse files Browse the repository at this point in the history
Change-Id: If0ebc38a30575346e2aaf08df7b125005cda0d80
(cherry picked from commit 6a7cd32)
(cherry picked from commit ae560b9)
  • Loading branch information
rfuchs committed Jan 10, 2025
1 parent 1bf22a0 commit e493452
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions daemon/media_player.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit e493452

Please sign in to comment.