mirror of https://git.ffmpeg.org/ffmpeg.git
movenc: Rename the timestamp parameter to dts in write_hint_packets
This matches its actual intended use better. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
a87a0acf9b
commit
0677ddebc6
|
@ -309,11 +309,11 @@ static void describe_payload(const uint8_t *data, int size,
|
||||||
* @param data buffer containing RTP packets
|
* @param data buffer containing RTP packets
|
||||||
* @param size the size of the data buffer
|
* @param size the size of the data buffer
|
||||||
* @param trk the MOVTrack for the hint track
|
* @param trk the MOVTrack for the hint track
|
||||||
* @param pts pointer where the timestamp for the written RTP hint is stored
|
* @param dts pointer where the timestamp for the written RTP hint is stored
|
||||||
* @return the number of RTP packets in the written hint
|
* @return the number of RTP packets in the written hint
|
||||||
*/
|
*/
|
||||||
static int write_hint_packets(AVIOContext *out, const uint8_t *data,
|
static int write_hint_packets(AVIOContext *out, const uint8_t *data,
|
||||||
int size, MOVTrack *trk, int64_t *pts)
|
int size, MOVTrack *trk, int64_t *dts)
|
||||||
{
|
{
|
||||||
int64_t curpos;
|
int64_t curpos;
|
||||||
int64_t count_pos, entries_pos;
|
int64_t count_pos, entries_pos;
|
||||||
|
@ -357,8 +357,8 @@ static int write_hint_packets(AVIOContext *out, const uint8_t *data,
|
||||||
trk->prev_rtp_ts = ts;
|
trk->prev_rtp_ts = ts;
|
||||||
ts_diff = 0;
|
ts_diff = 0;
|
||||||
}
|
}
|
||||||
if (*pts == AV_NOPTS_VALUE)
|
if (*dts == AV_NOPTS_VALUE)
|
||||||
*pts = trk->cur_rtp_ts_unwrapped;
|
*dts = trk->cur_rtp_ts_unwrapped;
|
||||||
|
|
||||||
count++;
|
count++;
|
||||||
/* RTPpacket header */
|
/* RTPpacket header */
|
||||||
|
|
Loading…
Reference in New Issue