Replace av_dlog with normal av_log at trace level
This applies to every library where performance is not critical.
This commit is contained in:
@@ -652,7 +652,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
|
||||
pkt->pts > pkt->dts)
|
||||
presentation_delayed = 1;
|
||||
|
||||
av_dlog(NULL,
|
||||
av_log(NULL, AV_LOG_TRACE,
|
||||
"IN delayed:%d pts:%"PRId64", dts:%"PRId64" "
|
||||
"cur_dts:%"PRId64" st:%d pc:%p\n",
|
||||
presentation_delayed, pkt->pts, pkt->dts, st->cur_dts,
|
||||
@@ -728,7 +728,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
|
||||
st->cur_dts = pkt->dts;
|
||||
}
|
||||
|
||||
av_dlog(NULL,
|
||||
av_log(NULL, AV_LOG_TRACE,
|
||||
"OUTdelayed:%d/%d pts:%"PRId64", dts:%"PRId64" cur_dts:%"PRId64"\n",
|
||||
presentation_delayed, delay, pkt->pts, pkt->dts, st->cur_dts);
|
||||
|
||||
@@ -1220,7 +1220,7 @@ int ff_seek_frame_binary(AVFormatContext *s, int stream_index,
|
||||
if (stream_index < 0)
|
||||
return -1;
|
||||
|
||||
av_dlog(s, "read_seek: %d %"PRId64"\n", stream_index, target_ts);
|
||||
av_log(s, AV_LOG_TRACE, "read_seek: %d %"PRId64"\n", stream_index, target_ts);
|
||||
|
||||
ts_max =
|
||||
ts_min = AV_NOPTS_VALUE;
|
||||
@@ -1240,7 +1240,7 @@ int ff_seek_frame_binary(AVFormatContext *s, int stream_index,
|
||||
if (e->timestamp <= target_ts || e->pos == e->min_distance) {
|
||||
pos_min = e->pos;
|
||||
ts_min = e->timestamp;
|
||||
av_dlog(s, "using cached pos_min=0x%"PRIx64" dts_min=%"PRId64"\n",
|
||||
av_log(s, AV_LOG_TRACE, "using cached pos_min=0x%"PRIx64" dts_min=%"PRId64"\n",
|
||||
pos_min, ts_min);
|
||||
} else {
|
||||
assert(index == 0);
|
||||
@@ -1255,7 +1255,7 @@ int ff_seek_frame_binary(AVFormatContext *s, int stream_index,
|
||||
pos_max = e->pos;
|
||||
ts_max = e->timestamp;
|
||||
pos_limit = pos_max - e->min_distance;
|
||||
av_dlog(s, "using cached pos_max=0x%"PRIx64" pos_limit=0x%"PRIx64
|
||||
av_log(s, AV_LOG_TRACE, "using cached pos_max=0x%"PRIx64" pos_limit=0x%"PRIx64
|
||||
" dts_max=%"PRId64"\n", pos_max, pos_limit, ts_max);
|
||||
}
|
||||
}
|
||||
@@ -1285,7 +1285,7 @@ int64_t ff_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts,
|
||||
int64_t start_pos, filesize;
|
||||
int no_change;
|
||||
|
||||
av_dlog(s, "gen_seek: %d %"PRId64"\n", stream_index, target_ts);
|
||||
av_log(s, AV_LOG_TRACE, "gen_seek: %d %"PRId64"\n", stream_index, target_ts);
|
||||
|
||||
if (ts_min == AV_NOPTS_VALUE) {
|
||||
pos_min = s->internal->data_offset;
|
||||
@@ -1328,7 +1328,7 @@ int64_t ff_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts,
|
||||
|
||||
no_change = 0;
|
||||
while (pos_min < pos_limit) {
|
||||
av_dlog(s, "pos_min=0x%"PRIx64" pos_max=0x%"PRIx64" dts_min=%"PRId64
|
||||
av_log(s, AV_LOG_TRACE, "pos_min=0x%"PRIx64" pos_max=0x%"PRIx64" dts_min=%"PRId64
|
||||
" dts_max=%"PRId64"\n", pos_min, pos_max, ts_min, ts_max);
|
||||
assert(pos_limit <= pos_max);
|
||||
|
||||
@@ -1358,7 +1358,7 @@ int64_t ff_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts,
|
||||
no_change++;
|
||||
else
|
||||
no_change = 0;
|
||||
av_dlog(s, "%"PRId64" %"PRId64" %"PRId64" / %"PRId64" %"PRId64" %"PRId64
|
||||
av_log(s, AV_LOG_TRACE, "%"PRId64" %"PRId64" %"PRId64" / %"PRId64" %"PRId64" %"PRId64
|
||||
" target:%"PRId64" limit:%"PRId64" start:%"PRId64" noc:%d\n",
|
||||
pos_min, pos, pos_max, ts_min, ts, ts_max, target_ts,
|
||||
pos_limit, start_pos, no_change);
|
||||
@@ -1384,7 +1384,7 @@ int64_t ff_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts,
|
||||
ts_min = read_timestamp(s, stream_index, &pos_min, INT64_MAX);
|
||||
pos_min++;
|
||||
ts_max = read_timestamp(s, stream_index, &pos_min, INT64_MAX);
|
||||
av_dlog(s, "pos=0x%"PRIx64" %"PRId64"<=%"PRId64"<=%"PRId64"\n",
|
||||
av_log(s, AV_LOG_TRACE, "pos=0x%"PRIx64" %"PRId64"<=%"PRId64"<=%"PRId64"\n",
|
||||
pos, ts_min, target_ts, ts_max);
|
||||
*ts_ret = ts;
|
||||
return pos;
|
||||
@@ -1796,11 +1796,11 @@ static void estimate_timings(AVFormatContext *ic, int64_t old_offset)
|
||||
AVStream av_unused *st;
|
||||
for (i = 0; i < ic->nb_streams; i++) {
|
||||
st = ic->streams[i];
|
||||
av_dlog(ic, "%d: start_time: %0.3f duration: %0.3f\n", i,
|
||||
av_log(ic, AV_LOG_TRACE, "%d: start_time: %0.3f duration: %0.3f\n", i,
|
||||
(double) st->start_time / AV_TIME_BASE,
|
||||
(double) st->duration / AV_TIME_BASE);
|
||||
}
|
||||
av_dlog(ic,
|
||||
av_log(ic, AV_LOG_TRACE,
|
||||
"stream: start_time: %0.3f duration: %0.3f bitrate=%d kb/s\n",
|
||||
(double) ic->start_time / AV_TIME_BASE,
|
||||
(double) ic->duration / AV_TIME_BASE,
|
||||
@@ -2568,7 +2568,7 @@ AVProgram *av_new_program(AVFormatContext *ac, int id)
|
||||
AVProgram *program = NULL;
|
||||
int i;
|
||||
|
||||
av_dlog(ac, "new_program: id=0x%04x\n", id);
|
||||
av_log(ac, AV_LOG_TRACE, "new_program: id=0x%04x\n", id);
|
||||
|
||||
for (i = 0; i < ac->nb_programs; i++)
|
||||
if (ac->programs[i]->id == id)
|
||||
|
Reference in New Issue
Block a user