mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 20:42:49 +08:00 
			
		
		
		
	avformat/utils: Place timestamp trace logs under FF_FDEBUG_TS
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -1085,10 +1085,12 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, | |||||||
|         pkt->pts > pkt->dts) |         pkt->pts > pkt->dts) | ||||||
|         presentation_delayed = 1; |         presentation_delayed = 1; | ||||||
|  |  | ||||||
|  |     if (s->debug & FF_FDEBUG_TS) | ||||||
|         av_log(s, AV_LOG_TRACE, |         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:%d delay:%d onein_oneout:%d\n", | ||||||
|             presentation_delayed, av_ts2str(pkt->pts), av_ts2str(pkt->dts), av_ts2str(st->cur_dts), |             presentation_delayed, av_ts2str(pkt->pts), av_ts2str(pkt->dts), av_ts2str(st->cur_dts), | ||||||
|             pkt->stream_index, pc, pkt->duration, delay, onein_oneout); |             pkt->stream_index, pc, pkt->duration, delay, onein_oneout); | ||||||
|  |  | ||||||
|     /* Interpolate PTS and DTS if they are not present. We skip H264 |     /* Interpolate PTS and DTS if they are not present. We skip H264 | ||||||
|      * currently because delay and has_b_frames are not reliably set. */ |      * currently because delay and has_b_frames are not reliably set. */ | ||||||
|     if ((delay == 0 || (delay == 1 && pc)) && |     if ((delay == 0 || (delay == 1 && pc)) && | ||||||
| @@ -1151,6 +1153,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, | |||||||
|     if (pkt->dts > st->cur_dts) |     if (pkt->dts > st->cur_dts) | ||||||
|         st->cur_dts = pkt->dts; |         st->cur_dts = pkt->dts; | ||||||
|  |  | ||||||
|  |     if (s->debug & FF_FDEBUG_TS) | ||||||
|         av_log(s, AV_LOG_TRACE, "OUTdelayed:%d/%d pts:%s, dts:%s cur_dts:%s\n", |         av_log(s, AV_LOG_TRACE, "OUTdelayed:%d/%d pts:%s, dts:%s cur_dts:%s\n", | ||||||
|             presentation_delayed, delay, av_ts2str(pkt->pts), av_ts2str(pkt->dts), av_ts2str(st->cur_dts)); |             presentation_delayed, delay, av_ts2str(pkt->pts), av_ts2str(pkt->dts), av_ts2str(st->cur_dts)); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Michael Niedermayer
					Michael Niedermayer