mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 22:25:36 +01:00
avformat: Convert some commented-out printf/av_log instances to av_dlog
This commit is contained in:
@@ -411,7 +411,8 @@ static int get_packet_size(const uint8_t *buf, int size)
|
||||
score = analyze(buf, size, TS_PACKET_SIZE, NULL);
|
||||
dvhs_score = analyze(buf, size, TS_DVHS_PACKET_SIZE, NULL);
|
||||
fec_score= analyze(buf, size, TS_FEC_PACKET_SIZE, NULL);
|
||||
// av_log(NULL, AV_LOG_DEBUG, "score: %d, dvhs_score: %d, fec_score: %d \n", score, dvhs_score, fec_score);
|
||||
av_dlog(NULL, "score: %d, dvhs_score: %d, fec_score: %d \n",
|
||||
score, dvhs_score, fec_score);
|
||||
|
||||
if (score > fec_score && score > dvhs_score) return TS_PACKET_SIZE;
|
||||
else if(dvhs_score > score && dvhs_score > fec_score) return TS_DVHS_PACKET_SIZE;
|
||||
@@ -1835,7 +1836,8 @@ static int mpegts_probe(AVProbeData *p)
|
||||
score = analyze(p->buf, TS_PACKET_SIZE *check_count, TS_PACKET_SIZE , NULL)*CHECK_COUNT/check_count;
|
||||
dvhs_score= analyze(p->buf, TS_DVHS_PACKET_SIZE*check_count, TS_DVHS_PACKET_SIZE, NULL)*CHECK_COUNT/check_count;
|
||||
fec_score = analyze(p->buf, TS_FEC_PACKET_SIZE *check_count, TS_FEC_PACKET_SIZE , NULL)*CHECK_COUNT/check_count;
|
||||
// av_log(NULL, AV_LOG_DEBUG, "score: %d, dvhs_score: %d, fec_score: %d \n", score, dvhs_score, fec_score);
|
||||
av_dlog(NULL, "score: %d, dvhs_score: %d, fec_score: %d \n",
|
||||
score, dvhs_score, fec_score);
|
||||
|
||||
// we need a clear definition for the returned score otherwise things will become messy sooner or later
|
||||
if (score > fec_score && score > dvhs_score && score > 6) return AVPROBE_SCORE_MAX + score - CHECK_COUNT;
|
||||
|
||||
Reference in New Issue
Block a user