Skip to content

Commit

Permalink
fix #1014 audio samples dropped in avformat producer
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Matherly <[email protected]>
  • Loading branch information
ddennedy and bmatherly committed Aug 17, 2024
1 parent 5f49b07 commit 460fde2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/avformat/producer_avformat.c
Original file line number Diff line number Diff line change
Expand Up @@ -3297,7 +3297,7 @@ static int decode_audio(producer_avformat self,
context->streams[index]->time_base);
int64_t int_position = llrint(timebase * pts * fps);
int64_t req_position = llrint(timecode * fps);
int64_t req_pts = llrint(timecode / timebase);
int64_t req_pts = floor(timecode / timebase);

mlt_log_debug(MLT_PRODUCER_SERVICE(self->parent),
"A pkt.pts %" PRId64 " pkt->dts %" PRId64 " req_pos %" PRId64
Expand Down

0 comments on commit 460fde2

Please sign in to comment.