mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-02 13:24:20 +08:00
Merge commit '948f3c19a8bd069768ca411212aaf8c1ed96b10d'
* commit '948f3c19a8bd069768ca411212aaf8c1ed96b10d': lavc: Make AVPacket.duration int64, and deprecate convergence_duration Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
@@ -954,7 +954,7 @@ static void update_initial_durations(AVFormatContext *s, AVStream *st,
|
||||
}
|
||||
}
|
||||
if (pktl && pktl->pkt.dts != st->first_dts) {
|
||||
av_log(s, AV_LOG_DEBUG, "first_dts %s not matching first dts %s (pts %s, duration %d) in the queue\n",
|
||||
av_log(s, AV_LOG_DEBUG, "first_dts %s not matching first dts %s (pts %s, duration %"PRId64") in the queue\n",
|
||||
av_ts2str(st->first_dts), av_ts2str(pktl->pkt.dts), av_ts2str(pktl->pkt.pts), pktl->pkt.duration);
|
||||
return;
|
||||
}
|
||||
@@ -1094,7 +1094,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
|
||||
|
||||
if (s->debug & FF_FDEBUG_TS)
|
||||
av_log(s, AV_LOG_TRACE,
|
||||
"IN delayed:%d pts:%s, dts:%s cur_dts:%s st:%d pc:%p duration:%d delay:%d onein_oneout:%d\n",
|
||||
"IN delayed:%d pts:%s, dts:%s cur_dts:%s st:%d pc:%p duration:%"PRId64" delay:%d onein_oneout:%d\n",
|
||||
presentation_delayed, av_ts2str(pkt->pts), av_ts2str(pkt->dts), av_ts2str(st->cur_dts),
|
||||
pkt->stream_index, pc, pkt->duration, delay, onein_oneout);
|
||||
|
||||
@@ -1167,8 +1167,12 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
|
||||
/* update flags */
|
||||
if (is_intra_only(st->codec))
|
||||
pkt->flags |= AV_PKT_FLAG_KEY;
|
||||
#if FF_API_CONVERGENCE_DURATION
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
if (pc)
|
||||
pkt->convergence_duration = pc->convergence_duration;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
}
|
||||
|
||||
static void free_packet_buffer(AVPacketList **pkt_buf, AVPacketList **pkt_buf_end)
|
||||
@@ -1348,7 +1352,7 @@ static int read_frame_internal(AVFormatContext *s, AVPacket *pkt)
|
||||
}
|
||||
if (s->debug & FF_FDEBUG_TS)
|
||||
av_log(s, AV_LOG_DEBUG,
|
||||
"ff_read_packet stream=%d, pts=%s, dts=%s, size=%d, duration=%d, flags=%d\n",
|
||||
"ff_read_packet stream=%d, pts=%s, dts=%s, size=%d, duration=%"PRId64", flags=%d\n",
|
||||
cur_pkt.stream_index,
|
||||
av_ts2str(cur_pkt.pts),
|
||||
av_ts2str(cur_pkt.dts),
|
||||
@@ -1460,7 +1464,7 @@ static int read_frame_internal(AVFormatContext *s, AVPacket *pkt)
|
||||
if (s->debug & FF_FDEBUG_TS)
|
||||
av_log(s, AV_LOG_DEBUG,
|
||||
"read_frame_internal stream=%d, pts=%s, dts=%s, "
|
||||
"size=%d, duration=%d, flags=%d\n",
|
||||
"size=%d, duration=%"PRId64", flags=%d\n",
|
||||
pkt->stream_index,
|
||||
av_ts2str(pkt->pts),
|
||||
av_ts2str(pkt->dts),
|
||||
|
||||
Reference in New Issue
Block a user