Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
ireader committed Oct 16, 2022
1 parent 0f0892e commit 74057b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librtsp/test/sdp-receiver-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static int rtsp_receiver_onpacket(void* param, struct avpacket_t* pkt)

// map timestamp
int discontinuity = 0;
int64_t timestamp = avtimeline_input64(&t->line, track, pkt->dts, &discontinuity);
int64_t timestamp = avtimeline_input64(&t->line, track, pkt->dts, pkt->pts, &discontinuity);
if (discontinuity)
printf("dts/pts discontinuity\n");
return mov_writer_write(t->ctx->mov, track, pkt->data, pkt->size, timestamp + (pkt->pts - pkt->dts), timestamp, (pkt->flags & AVPACKET_FLAG_KEY) ? MOV_AV_FLAG_KEYFREAME : 0);
Expand Down

0 comments on commit 74057b9

Please sign in to comment.