This applies to every library where performance is not critical.
Vittorio Giovara authored on 2015/03/16 17:57:35... | ... |
@@ -1065,7 +1065,7 @@ static double compute_target_time(double frame_current_pts, VideoState *is) |
1065 | 1065 |
} |
1066 | 1066 |
is->frame_timer += delay; |
1067 | 1067 |
|
1068 |
- av_dlog(NULL, "video: delay=%0.3f pts=%0.3f A-V=%f\n", |
|
1068 |
+ av_log(NULL, AV_LOG_TRACE, "video: delay=%0.3f pts=%0.3f A-V=%f\n", |
|
1069 | 1069 |
delay, frame_current_pts, -diff); |
1070 | 1070 |
|
1071 | 1071 |
return is->frame_timer; |
... | ... |
@@ -1611,7 +1611,7 @@ static int video_thread(void *arg) |
1611 | 1611 |
#if CONFIG_AVFILTER |
1612 | 1612 |
if ( last_w != is->video_st->codec->width |
1613 | 1613 |
|| last_h != is->video_st->codec->height) { |
1614 |
- av_dlog(NULL, "Changing size %dx%d -> %dx%d\n", last_w, last_h, |
|
1614 |
+ av_log(NULL, AV_LOG_TRACE, "Changing size %dx%d -> %dx%d\n", last_w, last_h, |
|
1615 | 1615 |
is->video_st->codec->width, is->video_st->codec->height); |
1616 | 1616 |
avfilter_graph_free(&graph); |
1617 | 1617 |
graph = avfilter_graph_alloc(); |
... | ... |
@@ -1640,7 +1640,7 @@ static int video_thread(void *arg) |
1640 | 1640 |
if (av_cmp_q(tb, is->video_st->time_base)) { |
1641 | 1641 |
av_unused int64_t pts1 = pts_int; |
1642 | 1642 |
pts_int = av_rescale_q(pts_int, tb, is->video_st->time_base); |
1643 |
- av_dlog(NULL, "video_thread(): " |
|
1643 |
+ av_log(NULL, AV_LOG_TRACE, "video_thread(): " |
|
1644 | 1644 |
"tb:%d/%d pts:%"PRId64" -> tb:%d/%d pts:%"PRId64"\n", |
1645 | 1645 |
tb.num, tb.den, pts1, |
1646 | 1646 |
is->video_st->time_base.num, is->video_st->time_base.den, pts_int); |
... | ... |
@@ -1819,7 +1819,7 @@ static int synchronize_audio(VideoState *is, short *samples, |
1819 | 1819 |
samples_size = wanted_size; |
1820 | 1820 |
} |
1821 | 1821 |
} |
1822 |
- av_dlog(NULL, "diff=%f adiff=%f sample_diff=%d apts=%0.3f vpts=%0.3f %f\n", |
|
1822 |
+ av_log(NULL, AV_LOG_TRACE, "diff=%f adiff=%f sample_diff=%d apts=%0.3f vpts=%0.3f %f\n", |
|
1823 | 1823 |
diff, avg_diff, samples_size - samples_size1, |
1824 | 1824 |
is->audio_clock, is->video_clock, is->audio_diff_threshold); |
1825 | 1825 |
} |
... | ... |
@@ -160,7 +160,7 @@ restart_poll: |
160 | 160 |
av_log(context, AV_LOG_ERROR, "Failed to get status: %s\n", strerror(errno)); |
161 | 161 |
return AVERROR(EIO); |
162 | 162 |
} |
163 |
- av_dlog(context, "DV1394: status\n" |
|
163 |
+ av_log(context, AV_LOG_TRACE, "DV1394: status\n" |
|
164 | 164 |
"\tactive_frame\t%d\n" |
165 | 165 |
"\tfirst_clear_frame\t%d\n" |
166 | 166 |
"\tn_clear_frames\t%d\n" |
... | ... |
@@ -181,7 +181,7 @@ restart_poll: |
181 | 181 |
} |
182 | 182 |
} |
183 | 183 |
|
184 |
- av_dlog(context, "index %d, avail %d, done %d\n", dv->index, dv->avail, |
|
184 |
+ av_log(context, AV_LOG_TRACE, "index %d, avail %d, done %d\n", dv->index, dv->avail, |
|
185 | 185 |
dv->done); |
186 | 186 |
|
187 | 187 |
size = avpriv_dv_produce_packet(dv->dv_demux, pkt, |
... | ... |
@@ -199,7 +199,7 @@ static int fbdev_read_packet(AVFormatContext *avctx, AVPacket *pkt) |
199 | 199 |
/* wait based on the frame rate */ |
200 | 200 |
curtime = av_gettime(); |
201 | 201 |
delay = fbdev->time_frame - curtime; |
202 |
- av_dlog(avctx, |
|
202 |
+ av_log(avctx, AV_LOG_TRACE, |
|
203 | 203 |
"time_frame:%"PRId64" curtime:%"PRId64" delay:%"PRId64"\n", |
204 | 204 |
fbdev->time_frame, curtime, delay); |
205 | 205 |
if (delay > 0) { |
... | ... |
@@ -225,7 +225,7 @@ int avfilter_config_links(AVFilterContext *filter) |
225 | 225 |
void ff_dlog_link(void *ctx, AVFilterLink *link, int end) |
226 | 226 |
{ |
227 | 227 |
if (link->type == AVMEDIA_TYPE_VIDEO) { |
228 |
- av_dlog(ctx, |
|
228 |
+ av_log(ctx, AV_LOG_TRACE, |
|
229 | 229 |
"link[%p s:%dx%d fmt:%-16s %-16s->%-16s]%s", |
230 | 230 |
link, link->w, link->h, |
231 | 231 |
av_get_pix_fmt_name(link->format), |
... | ... |
@@ -236,7 +236,7 @@ void ff_dlog_link(void *ctx, AVFilterLink *link, int end) |
236 | 236 |
char buf[128]; |
237 | 237 |
av_get_channel_layout_string(buf, sizeof(buf), -1, link->channel_layout); |
238 | 238 |
|
239 |
- av_dlog(ctx, |
|
239 |
+ av_log(ctx, AV_LOG_TRACE, |
|
240 | 240 |
"link[%p r:%d cl:%s fmt:%-16s %-16s->%-16s]%s", |
241 | 241 |
link, link->sample_rate, buf, |
242 | 242 |
av_get_sample_fmt_name(link->format), |
... | ... |
@@ -145,7 +145,7 @@ void ff_avfilter_default_free_buffer(AVFilterBuffer *buf); |
145 | 145 |
/** Tell is a format is contained in the provided list terminated by -1. */ |
146 | 146 |
int ff_fmt_is_in(int fmt, const int *fmts); |
147 | 147 |
|
148 |
-#define FF_DPRINTF_START(ctx, func) av_dlog(NULL, "%-16s: ", #func) |
|
148 |
+#define FF_DPRINTF_START(ctx, func) av_log(NULL, AV_LOG_TRACE, "%-16s: ", #func) |
|
149 | 149 |
|
150 | 150 |
void ff_dlog_link(void *ctx, AVFilterLink *link, int end); |
151 | 151 |
|
... | ... |
@@ -143,7 +143,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) |
143 | 143 |
d = av_expr_eval(setpts->expr, setpts->var_values, NULL); |
144 | 144 |
frame->pts = D2TS(d); |
145 | 145 |
|
146 |
- av_dlog(inlink->dst, |
|
146 |
+ av_log(inlink->dst, AV_LOG_TRACE, |
|
147 | 147 |
"n:%"PRId64" interlaced:%d pts:%"PRId64" t:%f -> pts:%"PRId64" t:%f\n", |
148 | 148 |
(int64_t)setpts->var_values[VAR_N], |
149 | 149 |
(int)setpts->var_values[VAR_INTERLACED], |
... | ... |
@@ -265,7 +265,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame) |
265 | 265 |
s->x &= ~((1 << s->hsub) - 1); |
266 | 266 |
s->y &= ~((1 << s->vsub) - 1); |
267 | 267 |
|
268 |
- av_dlog(ctx, "n:%d t:%f x:%d y:%d x+w:%d y+h:%d\n", |
|
268 |
+ av_log(ctx, AV_LOG_TRACE, "n:%d t:%f x:%d y:%d x+w:%d y+h:%d\n", |
|
269 | 269 |
(int)s->var_values[VAR_N], s->var_values[VAR_T], s->x, |
270 | 270 |
s->y, s->x+s->w, s->y+s->h); |
271 | 271 |
|
... | ... |
@@ -927,7 +927,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) |
927 | 927 |
s->x &= ~((1 << s->hsub) - 1); |
928 | 928 |
s->y &= ~((1 << s->vsub) - 1); |
929 | 929 |
|
930 |
- av_dlog(ctx, "n:%d t:%f x:%d y:%d x+w:%d y+h:%d\n", |
|
930 |
+ av_log(ctx, AV_LOG_TRACE, "n:%d t:%f x:%d y:%d x+w:%d y+h:%d\n", |
|
931 | 931 |
(int)s->var_values[VAR_N], s->var_values[VAR_T], |
932 | 932 |
s->x, s->y, s->x+s->w, s->y+s->h); |
933 | 933 |
|
... | ... |
@@ -102,7 +102,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) |
102 | 102 |
return ff_filter_frame(outlink, frame); |
103 | 103 |
} |
104 | 104 |
|
105 |
- av_dlog(ctx, |
|
105 |
+ av_log(ctx, AV_LOG_TRACE, |
|
106 | 106 |
"picture will move %s one line\n", |
107 | 107 |
s->dst_tff ? "up" : "down"); |
108 | 108 |
h = frame->height; |
... | ... |
@@ -222,7 +222,7 @@ static int movie_get_frame(AVFilterLink *outlink) |
222 | 222 |
if (frame_decoded) { |
223 | 223 |
if (movie->frame->pkt_pts != AV_NOPTS_VALUE) |
224 | 224 |
movie->frame->pts = movie->frame->pkt_pts; |
225 |
- av_dlog(outlink->src, |
|
225 |
+ av_log(outlink->src, AV_LOG_TRACE, |
|
226 | 226 |
"movie_get_frame(): file:'%s' pts:%"PRId64" time:%f aspect:%d/%d\n", |
227 | 227 |
movie->file_name, movie->frame->pts, |
228 | 228 |
(double)movie->frame->pts * |
... | ... |
@@ -114,7 +114,7 @@ static const ff_asf_guid stream_bitrate_guid = { /* (http://get.to/sdp) */ |
114 | 114 |
|
115 | 115 |
#define PRINT_IF_GUID(g, cmp) \ |
116 | 116 |
if (!ff_guidcmp(g, &cmp)) \ |
117 |
- av_dlog(NULL, "(GUID: %s) ", # cmp) |
|
117 |
+ av_log(NULL, AV_LOG_TRACE, "(GUID: %s) ", # cmp) |
|
118 | 118 |
|
119 | 119 |
static void print_guid(ff_asf_guid *g) |
120 | 120 |
{ |
... | ... |
@@ -145,10 +145,10 @@ static void print_guid(ff_asf_guid *g) |
145 | 145 |
else PRINT_IF_GUID(g, stream_bitrate_guid); |
146 | 146 |
else PRINT_IF_GUID(g, ff_asf_language_guid); |
147 | 147 |
else |
148 |
- av_dlog(NULL, "(GUID: unknown) "); |
|
148 |
+ av_log(NULL, AV_LOG_TRACE, "(GUID: unknown) "); |
|
149 | 149 |
for (i = 0; i < 16; i++) |
150 |
- av_dlog(NULL, " 0x%02x,", (*g)[i]); |
|
151 |
- av_dlog(NULL, "}\n"); |
|
150 |
+ av_log(NULL, AV_LOG_TRACE, " 0x%02x,", (*g)[i]); |
|
151 |
+ av_log(NULL, AV_LOG_TRACE, "}\n"); |
|
152 | 152 |
} |
153 | 153 |
#undef PRINT_IF_GUID |
154 | 154 |
#else |
... | ... |
@@ -658,7 +658,7 @@ static int asf_read_metadata(AVFormatContext *s, int64_t size) |
658 | 658 |
|
659 | 659 |
if ((ret = avio_get_str16le(pb, name_len, name, sizeof(name))) < name_len) |
660 | 660 |
avio_skip(pb, name_len - ret); |
661 |
- av_dlog(s, "%d stream %d name_len %2d type %d len %4d <%s>\n", |
|
661 |
+ av_log(s, AV_LOG_TRACE, "%d stream %d name_len %2d type %d len %4d <%s>\n", |
|
662 | 662 |
i, stream_num, name_len, value_type, value_len, name); |
663 | 663 |
|
664 | 664 |
if (!strcmp(name, "AspectRatioX")){ |
... | ... |
@@ -824,7 +824,7 @@ static int asf_read_header(AVFormatContext *s) |
824 | 824 |
&st->sample_aspect_ratio.den, |
825 | 825 |
asf->dar[0].num, asf->dar[0].den, INT_MAX); |
826 | 826 |
|
827 |
- av_dlog(s, "i=%d, st->codec->codec_type:%d, asf->dar %d:%d sar=%d:%d\n", |
|
827 |
+ av_log(s, AV_LOG_TRACE, "i=%d, st->codec->codec_type:%d, asf->dar %d:%d sar=%d:%d\n", |
|
828 | 828 |
i, st->codec->codec_type, asf->dar[i].num, asf->dar[i].den, |
829 | 829 |
st->sample_aspect_ratio.num, st->sample_aspect_ratio.den); |
830 | 830 |
|
... | ... |
@@ -962,7 +962,7 @@ static int asf_get_packet(AVFormatContext *s, AVIOContext *pb) |
962 | 962 |
if (packet_length < asf->hdr.min_pktsize) |
963 | 963 |
padsize += asf->hdr.min_pktsize - packet_length; |
964 | 964 |
asf->packet_padsize = padsize; |
965 |
- av_dlog(s, "packet: size=%d padsize=%d left=%d\n", |
|
965 |
+ av_log(s, AV_LOG_TRACE, "packet: size=%d padsize=%d left=%d\n", |
|
966 | 966 |
s->packet_size, asf->packet_padsize, asf->packet_size_left); |
967 | 967 |
return 0; |
968 | 968 |
} |
... | ... |
@@ -985,7 +985,7 @@ static int asf_read_frame_header(AVFormatContext *s, AVIOContext *pb) |
985 | 985 |
DO_2BITS(asf->packet_property >> 4, asf->packet_seq, 0); |
986 | 986 |
DO_2BITS(asf->packet_property >> 2, asf->packet_frag_offset, 0); |
987 | 987 |
DO_2BITS(asf->packet_property, asf->packet_replic_size, 0); |
988 |
- av_dlog(asf, "key:%d stream:%d seq:%d offset:%d replic_size:%d\n", |
|
988 |
+ av_log(asf, AV_LOG_TRACE, "key:%d stream:%d seq:%d offset:%d replic_size:%d\n", |
|
989 | 989 |
asf->packet_key_frame, asf->stream_index, asf->packet_seq, |
990 | 990 |
asf->packet_frag_offset, asf->packet_replic_size); |
991 | 991 |
if (asf->packet_replic_size >= 8) { |
... | ... |
@@ -1112,7 +1112,7 @@ static int asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt) |
1112 | 1112 |
av_assert0(asf_st); |
1113 | 1113 |
|
1114 | 1114 |
if (!asf_st->frag_offset && asf->packet_frag_offset) { |
1115 |
- av_dlog(s, "skipping asf data pkt with fragment offset for " |
|
1115 |
+ av_log(s, AV_LOG_TRACE, "skipping asf data pkt with fragment offset for " |
|
1116 | 1116 |
"stream:%d, expected:%d but got %d from pkt)\n", |
1117 | 1117 |
asf->stream_index, asf_st->frag_offset, |
1118 | 1118 |
asf->packet_frag_offset); |
... | ... |
@@ -1172,7 +1172,7 @@ static int asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt) |
1172 | 1172 |
asf_st->palette_changed = 0; |
1173 | 1173 |
} |
1174 | 1174 |
} |
1175 |
- av_dlog(asf, "new packet: stream:%d key:%d packet_key:%d audio:%d size:%d\n", |
|
1175 |
+ av_log(asf, AV_LOG_TRACE, "new packet: stream:%d key:%d packet_key:%d audio:%d size:%d\n", |
|
1176 | 1176 |
asf->stream_index, asf->packet_key_frame, |
1177 | 1177 |
asf_st->pkt.flags & AV_PKT_FLAG_KEY, |
1178 | 1178 |
s->streams[asf->stream_index]->codec->codec_type == AVMEDIA_TYPE_AUDIO, |
... | ... |
@@ -1184,7 +1184,7 @@ static int asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt) |
1184 | 1184 |
} |
1185 | 1185 |
|
1186 | 1186 |
/* read data */ |
1187 |
- av_dlog(asf, "READ PACKET s:%d os:%d o:%d,%d l:%d DATA:%p\n", |
|
1187 |
+ av_log(asf, AV_LOG_TRACE, "READ PACKET s:%d os:%d o:%d,%d l:%d DATA:%p\n", |
|
1188 | 1188 |
s->packet_size, asf_st->pkt.size, asf->packet_frag_offset, |
1189 | 1189 |
asf_st->frag_offset, asf->packet_frag_size, asf_st->pkt.data); |
1190 | 1190 |
asf->packet_size_left -= asf->packet_frag_size; |
... | ... |
@@ -63,7 +63,7 @@ static int64_t get_pts(const uint8_t *p) |
63 | 63 |
if (sscanf(p, "%*[^,],%d:%d:%d%*c%d", &hour, &min, &sec, &hsec) != 4) |
64 | 64 |
return AV_NOPTS_VALUE; |
65 | 65 |
|
66 |
- av_dlog(NULL, "%d %d %d %d [%s]\n", hour, min, sec, hsec, p); |
|
66 |
+ av_log(NULL, AV_LOG_TRACE, "%d %d %d %d [%s]\n", hour, min, sec, hsec, p); |
|
67 | 67 |
|
68 | 68 |
min += 60 * hour; |
69 | 69 |
sec += 60 * min; |
... | ... |
@@ -95,7 +95,7 @@ static int avi_load_index(AVFormatContext *s); |
95 | 95 |
static int guess_ni_flag(AVFormatContext *s); |
96 | 96 |
|
97 | 97 |
#define print_tag(str, tag, size) \ |
98 |
- av_dlog(NULL, "%s: tag=%c%c%c%c size=0x%x\n", \ |
|
98 |
+ av_log(NULL, AV_LOG_TRACE, "%s: tag=%c%c%c%c size=0x%x\n", \ |
|
99 | 99 |
str, tag & 0xff, \ |
100 | 100 |
(tag >> 8) & 0xff, \ |
101 | 101 |
(tag >> 16) & 0xff, \ |
... | ... |
@@ -155,7 +155,7 @@ static int read_braindead_odml_indx(AVFormatContext *s, int frame_num) |
155 | 155 |
int64_t last_pos = -1; |
156 | 156 |
int64_t filesize = avi->fsize; |
157 | 157 |
|
158 |
- av_dlog(s, |
|
158 |
+ av_log(s, AV_LOG_TRACE, |
|
159 | 159 |
"longs_pre_entry:%d index_type:%d entries_in_use:%d " |
160 | 160 |
"chunk_id:%X base:%16"PRIX64"\n", |
161 | 161 |
longs_pre_entry, |
... | ... |
@@ -196,7 +196,7 @@ static int read_braindead_odml_indx(AVFormatContext *s, int frame_num) |
196 | 196 |
int key = len >= 0; |
197 | 197 |
len &= 0x7FFFFFFF; |
198 | 198 |
|
199 |
- av_dlog(s, "pos:%"PRId64", len:%X\n", pos, len); |
|
199 |
+ av_log(s, AV_LOG_TRACE, "pos:%"PRId64", len:%X\n", pos, len); |
|
200 | 200 |
|
201 | 201 |
if (pb->eof_reached) |
202 | 202 |
return AVERROR_INVALIDDATA; |
... | ... |
@@ -405,7 +405,7 @@ static int avi_read_header(AVFormatContext *s) |
405 | 405 |
avi->movi_end = avi->movi_list + size + (size & 1); |
406 | 406 |
else |
407 | 407 |
avi->movi_end = avi->fsize; |
408 |
- av_dlog(NULL, "movi end=%"PRIx64"\n", avi->movi_end); |
|
408 |
+ av_log(NULL, AV_LOG_TRACE, "movi end=%"PRIx64"\n", avi->movi_end); |
|
409 | 409 |
goto end_of_header; |
410 | 410 |
} else if (tag1 == MKTAG('I', 'N', 'F', 'O')) |
411 | 411 |
ff_read_riff_info(s, size - 4); |
... | ... |
@@ -549,7 +549,7 @@ static int avi_read_header(AVFormatContext *s) |
549 | 549 |
avio_rl32(pb); /* quality */ |
550 | 550 |
ast->sample_size = avio_rl32(pb); /* sample ssize */ |
551 | 551 |
ast->cum_len *= FFMAX(1, ast->sample_size); |
552 |
- av_dlog(s, "%"PRIu32" %"PRIu32" %d\n", |
|
552 |
+ av_log(s, AV_LOG_TRACE, "%"PRIu32" %"PRIu32" %d\n", |
|
553 | 553 |
ast->rate, ast->scale, ast->sample_size); |
554 | 554 |
|
555 | 555 |
switch (tag1) { |
... | ... |
@@ -769,7 +769,7 @@ static int avi_read_header(AVFormatContext *s) |
769 | 769 |
if (active_aspect.num && active_aspect.den && |
770 | 770 |
active.num && active.den) { |
771 | 771 |
st->sample_aspect_ratio = av_div_q(active_aspect, active); |
772 |
- av_dlog(s, "vprp %d/%d %d/%d\n", |
|
772 |
+ av_log(s, AV_LOG_TRACE, "vprp %d/%d %d/%d\n", |
|
773 | 773 |
active_aspect.num, active_aspect.den, |
774 | 774 |
active.num, active.den); |
775 | 775 |
} |
... | ... |
@@ -957,7 +957,7 @@ start_sync: |
957 | 957 |
size = d[4] + (d[5] << 8) + (d[6] << 16) + (d[7] << 24); |
958 | 958 |
|
959 | 959 |
n = get_stream_idx(d + 2); |
960 |
- av_dlog(s, "%X %X %X %X %X %X %X %X %"PRId64" %u %d\n", |
|
960 |
+ av_log(s, AV_LOG_TRACE, "%X %X %X %X %X %X %X %X %"PRId64" %u %d\n", |
|
961 | 961 |
d[0], d[1], d[2], d[3], d[4], d[5], d[6], d[7], i, size, n); |
962 | 962 |
if (i + (uint64_t)size > avi->fsize || d[0] > 127) |
963 | 963 |
continue; |
... | ... |
@@ -1114,7 +1114,7 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt) |
1114 | 1114 |
(AVRational) { FFMAX(1, ast->sample_size), |
1115 | 1115 |
AV_TIME_BASE }); |
1116 | 1116 |
|
1117 |
- av_dlog(s, "%"PRId64" %d/%d %"PRId64"\n", ts, |
|
1117 |
+ av_log(s, AV_LOG_TRACE, "%"PRId64" %d/%d %"PRId64"\n", ts, |
|
1118 | 1118 |
st->time_base.num, st->time_base.den, ast->frame_offset); |
1119 | 1119 |
if (ts < best_ts) { |
1120 | 1120 |
best_ts = ts; |
... | ... |
@@ -1224,7 +1224,7 @@ FF_ENABLE_DEPRECATION_WARNINGS |
1224 | 1224 |
// pkt->dts += ast->start; |
1225 | 1225 |
if (ast->sample_size) |
1226 | 1226 |
pkt->dts /= ast->sample_size; |
1227 |
- av_dlog(s, |
|
1227 |
+ av_log(s, AV_LOG_TRACE, |
|
1228 | 1228 |
"dts:%"PRId64" offset:%"PRId64" %d/%d smpl_siz:%d " |
1229 | 1229 |
"base:%d st:%d size:%d\n", |
1230 | 1230 |
pkt->dts, |
... | ... |
@@ -1297,7 +1297,7 @@ static int avi_read_idx1(AVFormatContext *s, int size) |
1297 | 1297 |
flags = avio_rl32(pb); |
1298 | 1298 |
pos = avio_rl32(pb); |
1299 | 1299 |
len = avio_rl32(pb); |
1300 |
- av_dlog(s, "%d: tag=0x%x flags=0x%x pos=0x%x len=%d/", |
|
1300 |
+ av_log(s, AV_LOG_TRACE, "%d: tag=0x%x flags=0x%x pos=0x%x len=%d/", |
|
1301 | 1301 |
i, tag, flags, pos, len); |
1302 | 1302 |
|
1303 | 1303 |
index = ((tag & 0xff) - '0') * 10; |
... | ... |
@@ -1313,7 +1313,7 @@ static int avi_read_idx1(AVFormatContext *s, int size) |
1313 | 1313 |
} |
1314 | 1314 |
pos += data_offset; |
1315 | 1315 |
|
1316 |
- av_dlog(s, "%d cum_len=%"PRId64"\n", len, ast->cum_len); |
|
1316 |
+ av_log(s, AV_LOG_TRACE, "%d cum_len=%"PRId64"\n", len, ast->cum_len); |
|
1317 | 1317 |
|
1318 | 1318 |
if (pb->eof_reached) |
1319 | 1319 |
return AVERROR_INVALIDDATA; |
... | ... |
@@ -1433,13 +1433,13 @@ static int avi_load_index(AVFormatContext *s) |
1433 | 1433 |
|
1434 | 1434 |
if (avio_seek(pb, avi->movi_end, SEEK_SET) < 0) |
1435 | 1435 |
goto the_end; // maybe truncated file |
1436 |
- av_dlog(s, "movi_end=0x%"PRIx64"\n", avi->movi_end); |
|
1436 |
+ av_log(s, AV_LOG_TRACE, "movi_end=0x%"PRIx64"\n", avi->movi_end); |
|
1437 | 1437 |
for (;;) { |
1438 | 1438 |
if (pb->eof_reached) |
1439 | 1439 |
break; |
1440 | 1440 |
tag = avio_rl32(pb); |
1441 | 1441 |
size = avio_rl32(pb); |
1442 |
- av_dlog(s, "tag=%c%c%c%c size=0x%x\n", |
|
1442 |
+ av_log(s, AV_LOG_TRACE, "tag=%c%c%c%c size=0x%x\n", |
|
1443 | 1443 |
tag & 0xff, |
1444 | 1444 |
(tag >> 8) & 0xff, |
1445 | 1445 |
(tag >> 16) & 0xff, |
... | ... |
@@ -1505,7 +1505,7 @@ static int avi_read_seek(AVFormatContext *s, int stream_index, |
1505 | 1505 |
pos = st->index_entries[index].pos; |
1506 | 1506 |
timestamp = st->index_entries[index].timestamp / FFMAX(ast->sample_size, 1); |
1507 | 1507 |
|
1508 |
- av_dlog(s, "XX %"PRId64" %d %"PRId64"\n", |
|
1508 |
+ av_log(s, AV_LOG_TRACE, "XX %"PRId64" %d %"PRId64"\n", |
|
1509 | 1509 |
timestamp, index, st->index_entries[index].timestamp); |
1510 | 1510 |
|
1511 | 1511 |
if (CONFIG_DV_DEMUXER && avi->dv_demux) { |
... | ... |
@@ -1557,7 +1557,7 @@ static int avi_read_seek(AVFormatContext *s, int stream_index, |
1557 | 1557 |
index++; |
1558 | 1558 |
} |
1559 | 1559 |
|
1560 |
- av_dlog(s, "%"PRId64" %d %"PRId64"\n", |
|
1560 |
+ av_log(s, AV_LOG_TRACE, "%"PRId64" %d %"PRId64"\n", |
|
1561 | 1561 |
timestamp, index, st2->index_entries[index].timestamp); |
1562 | 1562 |
/* extract the current frame number */ |
1563 | 1563 |
ast2->frame_offset = st2->index_entries[index].timestamp; |
... | ... |
@@ -750,7 +750,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) |
750 | 750 |
size = avio_rb24(s->pb); |
751 | 751 |
dts = avio_rb24(s->pb); |
752 | 752 |
dts |= avio_r8(s->pb) << 24; |
753 |
- av_dlog(s, "type:%d, size:%d, dts:%"PRId64"\n", type, size, dts); |
|
753 |
+ av_log(s, AV_LOG_TRACE, "type:%d, size:%d, dts:%"PRId64"\n", type, size, dts); |
|
754 | 754 |
if (s->pb->eof_reached) |
755 | 755 |
return AVERROR_EOF; |
756 | 756 |
avio_skip(s->pb, 3); /* stream id, always 0 */ |
... | ... |
@@ -823,7 +823,7 @@ skip: |
823 | 823 |
if (!st) |
824 | 824 |
return AVERROR(ENOMEM); |
825 | 825 |
} |
826 |
- av_dlog(s, "%d %X %d \n", is_audio, flags, st->discard); |
|
826 |
+ av_log(s, AV_LOG_TRACE, "%d %X %d \n", is_audio, flags, st->discard); |
|
827 | 827 |
|
828 | 828 |
if ((flags & FLV_VIDEO_FRAMETYPE_MASK) == FLV_FRAME_KEY || |
829 | 829 |
is_audio) |
... | ... |
@@ -933,7 +933,7 @@ skip: |
933 | 933 |
st->codec->sample_rate = cfg.ext_sample_rate; |
934 | 934 |
else |
935 | 935 |
st->codec->sample_rate = cfg.sample_rate; |
936 |
- av_dlog(s, "mp4a config channels %d sample rate %d\n", |
|
936 |
+ av_log(s, AV_LOG_TRACE, "mp4a config channels %d sample rate %d\n", |
|
937 | 937 |
st->codec->channels, st->codec->sample_rate); |
938 | 938 |
} |
939 | 939 |
|
... | ... |
@@ -849,51 +849,51 @@ static int hvcc_write(AVIOContext *pb, HEVCDecoderConfigurationRecord *hvcc) |
849 | 849 |
hvcc->avgFrameRate = 0; |
850 | 850 |
hvcc->constantFrameRate = 0; |
851 | 851 |
|
852 |
- av_dlog(NULL, "configurationVersion: %"PRIu8"\n", |
|
852 |
+ av_log(NULL, AV_LOG_TRACE, "configurationVersion: %"PRIu8"\n", |
|
853 | 853 |
hvcc->configurationVersion); |
854 |
- av_dlog(NULL, "general_profile_space: %"PRIu8"\n", |
|
854 |
+ av_log(NULL, AV_LOG_TRACE, "general_profile_space: %"PRIu8"\n", |
|
855 | 855 |
hvcc->general_profile_space); |
856 |
- av_dlog(NULL, "general_tier_flag: %"PRIu8"\n", |
|
856 |
+ av_log(NULL, AV_LOG_TRACE, "general_tier_flag: %"PRIu8"\n", |
|
857 | 857 |
hvcc->general_tier_flag); |
858 |
- av_dlog(NULL, "general_profile_idc: %"PRIu8"\n", |
|
858 |
+ av_log(NULL, AV_LOG_TRACE, "general_profile_idc: %"PRIu8"\n", |
|
859 | 859 |
hvcc->general_profile_idc); |
860 |
- av_dlog(NULL, "general_profile_compatibility_flags: 0x%08"PRIx32"\n", |
|
860 |
+ av_log(NULL, AV_LOG_TRACE, "general_profile_compatibility_flags: 0x%08"PRIx32"\n", |
|
861 | 861 |
hvcc->general_profile_compatibility_flags); |
862 |
- av_dlog(NULL, "general_constraint_indicator_flags: 0x%012"PRIx64"\n", |
|
862 |
+ av_log(NULL, AV_LOG_TRACE, "general_constraint_indicator_flags: 0x%012"PRIx64"\n", |
|
863 | 863 |
hvcc->general_constraint_indicator_flags); |
864 |
- av_dlog(NULL, "general_level_idc: %"PRIu8"\n", |
|
864 |
+ av_log(NULL, AV_LOG_TRACE, "general_level_idc: %"PRIu8"\n", |
|
865 | 865 |
hvcc->general_level_idc); |
866 |
- av_dlog(NULL, "min_spatial_segmentation_idc: %"PRIu16"\n", |
|
866 |
+ av_log(NULL, AV_LOG_TRACE, "min_spatial_segmentation_idc: %"PRIu16"\n", |
|
867 | 867 |
hvcc->min_spatial_segmentation_idc); |
868 |
- av_dlog(NULL, "parallelismType: %"PRIu8"\n", |
|
868 |
+ av_log(NULL, AV_LOG_TRACE, "parallelismType: %"PRIu8"\n", |
|
869 | 869 |
hvcc->parallelismType); |
870 |
- av_dlog(NULL, "chromaFormat: %"PRIu8"\n", |
|
870 |
+ av_log(NULL, AV_LOG_TRACE, "chromaFormat: %"PRIu8"\n", |
|
871 | 871 |
hvcc->chromaFormat); |
872 |
- av_dlog(NULL, "bitDepthLumaMinus8: %"PRIu8"\n", |
|
872 |
+ av_log(NULL, AV_LOG_TRACE, "bitDepthLumaMinus8: %"PRIu8"\n", |
|
873 | 873 |
hvcc->bitDepthLumaMinus8); |
874 |
- av_dlog(NULL, "bitDepthChromaMinus8: %"PRIu8"\n", |
|
874 |
+ av_log(NULL, AV_LOG_TRACE, "bitDepthChromaMinus8: %"PRIu8"\n", |
|
875 | 875 |
hvcc->bitDepthChromaMinus8); |
876 |
- av_dlog(NULL, "avgFrameRate: %"PRIu16"\n", |
|
876 |
+ av_log(NULL, AV_LOG_TRACE, "avgFrameRate: %"PRIu16"\n", |
|
877 | 877 |
hvcc->avgFrameRate); |
878 |
- av_dlog(NULL, "constantFrameRate: %"PRIu8"\n", |
|
878 |
+ av_log(NULL, AV_LOG_TRACE, "constantFrameRate: %"PRIu8"\n", |
|
879 | 879 |
hvcc->constantFrameRate); |
880 |
- av_dlog(NULL, "numTemporalLayers: %"PRIu8"\n", |
|
880 |
+ av_log(NULL, AV_LOG_TRACE, "numTemporalLayers: %"PRIu8"\n", |
|
881 | 881 |
hvcc->numTemporalLayers); |
882 |
- av_dlog(NULL, "temporalIdNested: %"PRIu8"\n", |
|
882 |
+ av_log(NULL, AV_LOG_TRACE, "temporalIdNested: %"PRIu8"\n", |
|
883 | 883 |
hvcc->temporalIdNested); |
884 |
- av_dlog(NULL, "lengthSizeMinusOne: %"PRIu8"\n", |
|
884 |
+ av_log(NULL, AV_LOG_TRACE, "lengthSizeMinusOne: %"PRIu8"\n", |
|
885 | 885 |
hvcc->lengthSizeMinusOne); |
886 |
- av_dlog(NULL, "numOfArrays: %"PRIu8"\n", |
|
886 |
+ av_log(NULL, AV_LOG_TRACE, "numOfArrays: %"PRIu8"\n", |
|
887 | 887 |
hvcc->numOfArrays); |
888 | 888 |
for (i = 0; i < hvcc->numOfArrays; i++) { |
889 |
- av_dlog(NULL, "array_completeness[%"PRIu8"]: %"PRIu8"\n", |
|
889 |
+ av_log(NULL, AV_LOG_TRACE, "array_completeness[%"PRIu8"]: %"PRIu8"\n", |
|
890 | 890 |
i, hvcc->array[i].array_completeness); |
891 |
- av_dlog(NULL, "NAL_unit_type[%"PRIu8"]: %"PRIu8"\n", |
|
891 |
+ av_log(NULL, AV_LOG_TRACE, "NAL_unit_type[%"PRIu8"]: %"PRIu8"\n", |
|
892 | 892 |
i, hvcc->array[i].NAL_unit_type); |
893 |
- av_dlog(NULL, "numNalus[%"PRIu8"]: %"PRIu16"\n", |
|
893 |
+ av_log(NULL, AV_LOG_TRACE, "numNalus[%"PRIu8"]: %"PRIu16"\n", |
|
894 | 894 |
i, hvcc->array[i].numNalus); |
895 | 895 |
for (j = 0; j < hvcc->array[i].numNalus; j++) |
896 |
- av_dlog(NULL, |
|
896 |
+ av_log(NULL, AV_LOG_TRACE, |
|
897 | 897 |
"nalUnitLength[%"PRIu8"][%"PRIu16"]: %"PRIu16"\n", |
898 | 898 |
i, j, hvcc->array[i].nalUnitLength[j]); |
899 | 899 |
} |
... | ... |
@@ -460,7 +460,7 @@ static int process_line(URLContext *h, char *line, int line_count, |
460 | 460 |
p++; |
461 | 461 |
s->http_code = strtol(p, &end, 10); |
462 | 462 |
|
463 |
- av_dlog(NULL, "http_code=%d\n", s->http_code); |
|
463 |
+ av_log(NULL, AV_LOG_TRACE, "http_code=%d\n", s->http_code); |
|
464 | 464 |
|
465 | 465 |
if ((ret = check_http_code(h, s->http_code, end)) < 0) |
466 | 466 |
return ret; |
... | ... |
@@ -535,7 +535,7 @@ static int http_read_header(URLContext *h, int *new_location) |
535 | 535 |
if ((err = http_get_line(s, line, sizeof(line))) < 0) |
536 | 536 |
return err; |
537 | 537 |
|
538 |
- av_dlog(NULL, "header='%s'\n", line); |
|
538 |
+ av_log(NULL, AV_LOG_TRACE, "header='%s'\n", line); |
|
539 | 539 |
|
540 | 540 |
err = process_line(h, line, s->line_count, new_location); |
541 | 541 |
if (err < 0) |
... | ... |
@@ -775,7 +775,7 @@ static int http_read_stream(URLContext *h, uint8_t *buf, int size) |
775 | 775 |
|
776 | 776 |
s->chunksize = strtoll(line, NULL, 16); |
777 | 777 |
|
778 |
- av_dlog(NULL, "Chunked encoding data size: %"PRId64"'\n", |
|
778 |
+ av_log(NULL, AV_LOG_TRACE, "Chunked encoding data size: %"PRId64"'\n", |
|
779 | 779 |
s->chunksize); |
780 | 780 |
|
781 | 781 |
if (!s->chunksize) |
... | ... |
@@ -147,7 +147,7 @@ static int load_ipmovie_packet(IPMVEContext *s, AVIOContext *pb, |
147 | 147 |
s->audio_frame_count += |
148 | 148 |
(s->audio_chunk_size - 6 - s->audio_channels) / s->audio_channels; |
149 | 149 |
|
150 |
- av_dlog(NULL, "sending audio frame with pts %"PRId64" (%d audio frames)\n", |
|
150 |
+ av_log(NULL, AV_LOG_TRACE, "sending audio frame with pts %"PRId64" (%d audio frames)\n", |
|
151 | 151 |
pkt->pts, s->audio_frame_count); |
152 | 152 |
|
153 | 153 |
chunk_type = CHUNK_VIDEO; |
... | ... |
@@ -196,7 +196,7 @@ static int load_ipmovie_packet(IPMVEContext *s, AVIOContext *pb, |
196 | 196 |
pkt->stream_index = s->video_stream_index; |
197 | 197 |
pkt->pts = s->video_pts; |
198 | 198 |
|
199 |
- av_dlog(NULL, "sending video frame with pts %"PRId64"\n", pkt->pts); |
|
199 |
+ av_log(NULL, AV_LOG_TRACE, "sending video frame with pts %"PRId64"\n", pkt->pts); |
|
200 | 200 |
|
201 | 201 |
s->video_pts += s->frame_pts_inc; |
202 | 202 |
|
... | ... |
@@ -245,36 +245,36 @@ static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, |
245 | 245 |
chunk_size = AV_RL16(&chunk_preamble[0]); |
246 | 246 |
chunk_type = AV_RL16(&chunk_preamble[2]); |
247 | 247 |
|
248 |
- av_dlog(NULL, "chunk type 0x%04X, 0x%04X bytes: ", chunk_type, chunk_size); |
|
248 |
+ av_log(NULL, AV_LOG_TRACE, "chunk type 0x%04X, 0x%04X bytes: ", chunk_type, chunk_size); |
|
249 | 249 |
|
250 | 250 |
switch (chunk_type) { |
251 | 251 |
|
252 | 252 |
case CHUNK_INIT_AUDIO: |
253 |
- av_dlog(NULL, "initialize audio\n"); |
|
253 |
+ av_log(NULL, AV_LOG_TRACE, "initialize audio\n"); |
|
254 | 254 |
break; |
255 | 255 |
|
256 | 256 |
case CHUNK_AUDIO_ONLY: |
257 |
- av_dlog(NULL, "audio only\n"); |
|
257 |
+ av_log(NULL, AV_LOG_TRACE, "audio only\n"); |
|
258 | 258 |
break; |
259 | 259 |
|
260 | 260 |
case CHUNK_INIT_VIDEO: |
261 |
- av_dlog(NULL, "initialize video\n"); |
|
261 |
+ av_log(NULL, AV_LOG_TRACE, "initialize video\n"); |
|
262 | 262 |
break; |
263 | 263 |
|
264 | 264 |
case CHUNK_VIDEO: |
265 |
- av_dlog(NULL, "video (and audio)\n"); |
|
265 |
+ av_log(NULL, AV_LOG_TRACE, "video (and audio)\n"); |
|
266 | 266 |
break; |
267 | 267 |
|
268 | 268 |
case CHUNK_SHUTDOWN: |
269 |
- av_dlog(NULL, "shutdown\n"); |
|
269 |
+ av_log(NULL, AV_LOG_TRACE, "shutdown\n"); |
|
270 | 270 |
break; |
271 | 271 |
|
272 | 272 |
case CHUNK_END: |
273 |
- av_dlog(NULL, "end\n"); |
|
273 |
+ av_log(NULL, AV_LOG_TRACE, "end\n"); |
|
274 | 274 |
break; |
275 | 275 |
|
276 | 276 |
default: |
277 |
- av_dlog(NULL, "invalid chunk\n"); |
|
277 |
+ av_log(NULL, AV_LOG_TRACE, "invalid chunk\n"); |
|
278 | 278 |
chunk_type = CHUNK_BAD; |
279 | 279 |
break; |
280 | 280 |
|
... | ... |
@@ -300,29 +300,29 @@ static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, |
300 | 300 |
chunk_size -= OPCODE_PREAMBLE_SIZE; |
301 | 301 |
chunk_size -= opcode_size; |
302 | 302 |
if (chunk_size < 0) { |
303 |
- av_dlog(NULL, "chunk_size countdown just went negative\n"); |
|
303 |
+ av_log(NULL, AV_LOG_TRACE, "chunk_size countdown just went negative\n"); |
|
304 | 304 |
chunk_type = CHUNK_BAD; |
305 | 305 |
break; |
306 | 306 |
} |
307 | 307 |
|
308 |
- av_dlog(NULL, " opcode type %02X, version %d, 0x%04X bytes: ", |
|
308 |
+ av_log(NULL, AV_LOG_TRACE, " opcode type %02X, version %d, 0x%04X bytes: ", |
|
309 | 309 |
opcode_type, opcode_version, opcode_size); |
310 | 310 |
switch (opcode_type) { |
311 | 311 |
|
312 | 312 |
case OPCODE_END_OF_STREAM: |
313 |
- av_dlog(NULL, "end of stream\n"); |
|
313 |
+ av_log(NULL, AV_LOG_TRACE, "end of stream\n"); |
|
314 | 314 |
avio_skip(pb, opcode_size); |
315 | 315 |
break; |
316 | 316 |
|
317 | 317 |
case OPCODE_END_OF_CHUNK: |
318 |
- av_dlog(NULL, "end of chunk\n"); |
|
318 |
+ av_log(NULL, AV_LOG_TRACE, "end of chunk\n"); |
|
319 | 319 |
avio_skip(pb, opcode_size); |
320 | 320 |
break; |
321 | 321 |
|
322 | 322 |
case OPCODE_CREATE_TIMER: |
323 |
- av_dlog(NULL, "create timer\n"); |
|
323 |
+ av_log(NULL, AV_LOG_TRACE, "create timer\n"); |
|
324 | 324 |
if ((opcode_version > 0) || (opcode_size > 6)) { |
325 |
- av_dlog(NULL, "bad create_timer opcode\n"); |
|
325 |
+ av_log(NULL, AV_LOG_TRACE, "bad create_timer opcode\n"); |
|
326 | 326 |
chunk_type = CHUNK_BAD; |
327 | 327 |
break; |
328 | 328 |
} |
... | ... |
@@ -332,15 +332,15 @@ static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, |
332 | 332 |
break; |
333 | 333 |
} |
334 | 334 |
s->frame_pts_inc = ((uint64_t)AV_RL32(&scratch[0])) * AV_RL16(&scratch[4]); |
335 |
- av_dlog(NULL, " %.2f frames/second (timer div = %d, subdiv = %d)\n", |
|
335 |
+ av_log(NULL, AV_LOG_TRACE, " %.2f frames/second (timer div = %d, subdiv = %d)\n", |
|
336 | 336 |
1000000.0 / s->frame_pts_inc, AV_RL32(&scratch[0]), |
337 | 337 |
AV_RL16(&scratch[4])); |
338 | 338 |
break; |
339 | 339 |
|
340 | 340 |
case OPCODE_INIT_AUDIO_BUFFERS: |
341 |
- av_dlog(NULL, "initialize audio buffers\n"); |
|
341 |
+ av_log(NULL, AV_LOG_TRACE, "initialize audio buffers\n"); |
|
342 | 342 |
if ((opcode_version > 1) || (opcode_size > 10)) { |
343 |
- av_dlog(NULL, "bad init_audio_buffers opcode\n"); |
|
343 |
+ av_log(NULL, AV_LOG_TRACE, "bad init_audio_buffers opcode\n"); |
|
344 | 344 |
chunk_type = CHUNK_BAD; |
345 | 345 |
break; |
346 | 346 |
} |
... | ... |
@@ -362,7 +362,7 @@ static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, |
362 | 362 |
s->audio_type = AV_CODEC_ID_PCM_S16LE; |
363 | 363 |
else |
364 | 364 |
s->audio_type = AV_CODEC_ID_PCM_U8; |
365 |
- av_dlog(NULL, "audio: %d bits, %d Hz, %s, %s format\n", |
|
365 |
+ av_log(NULL, AV_LOG_TRACE, "audio: %d bits, %d Hz, %s, %s format\n", |
|
366 | 366 |
s->audio_bits, s->audio_sample_rate, |
367 | 367 |
(s->audio_channels == 2) ? "stereo" : "mono", |
368 | 368 |
(s->audio_type == AV_CODEC_ID_INTERPLAY_DPCM) ? |
... | ... |
@@ -370,14 +370,14 @@ static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, |
370 | 370 |
break; |
371 | 371 |
|
372 | 372 |
case OPCODE_START_STOP_AUDIO: |
373 |
- av_dlog(NULL, "start/stop audio\n"); |
|
373 |
+ av_log(NULL, AV_LOG_TRACE, "start/stop audio\n"); |
|
374 | 374 |
avio_skip(pb, opcode_size); |
375 | 375 |
break; |
376 | 376 |
|
377 | 377 |
case OPCODE_INIT_VIDEO_BUFFERS: |
378 |
- av_dlog(NULL, "initialize video buffers\n"); |
|
378 |
+ av_log(NULL, AV_LOG_TRACE, "initialize video buffers\n"); |
|
379 | 379 |
if ((opcode_version > 2) || (opcode_size > 8)) { |
380 |
- av_dlog(NULL, "bad init_video_buffers opcode\n"); |
|
380 |
+ av_log(NULL, AV_LOG_TRACE, "bad init_video_buffers opcode\n"); |
|
381 | 381 |
chunk_type = CHUNK_BAD; |
382 | 382 |
break; |
383 | 383 |
} |
... | ... |
@@ -401,7 +401,7 @@ static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, |
401 | 401 |
} else { |
402 | 402 |
s->video_bpp = 16; |
403 | 403 |
} |
404 |
- av_dlog(NULL, "video resolution: %d x %d\n", |
|
404 |
+ av_log(NULL, AV_LOG_TRACE, "video resolution: %d x %d\n", |
|
405 | 405 |
s->video_width, s->video_height); |
406 | 406 |
break; |
407 | 407 |
|
... | ... |
@@ -412,17 +412,17 @@ static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, |
412 | 412 |
case OPCODE_UNKNOWN_13: |
413 | 413 |
case OPCODE_UNKNOWN_14: |
414 | 414 |
case OPCODE_UNKNOWN_15: |
415 |
- av_dlog(NULL, "unknown (but documented) opcode %02X\n", opcode_type); |
|
415 |
+ av_log(NULL, AV_LOG_TRACE, "unknown (but documented) opcode %02X\n", opcode_type); |
|
416 | 416 |
avio_skip(pb, opcode_size); |
417 | 417 |
break; |
418 | 418 |
|
419 | 419 |
case OPCODE_SEND_BUFFER: |
420 |
- av_dlog(NULL, "send buffer\n"); |
|
420 |
+ av_log(NULL, AV_LOG_TRACE, "send buffer\n"); |
|
421 | 421 |
avio_skip(pb, opcode_size); |
422 | 422 |
break; |
423 | 423 |
|
424 | 424 |
case OPCODE_AUDIO_FRAME: |
425 |
- av_dlog(NULL, "audio frame\n"); |
|
425 |
+ av_log(NULL, AV_LOG_TRACE, "audio frame\n"); |
|
426 | 426 |
|
427 | 427 |
/* log position and move on for now */ |
428 | 428 |
s->audio_chunk_offset = avio_tell(pb); |
... | ... |
@@ -431,26 +431,26 @@ static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, |
431 | 431 |
break; |
432 | 432 |
|
433 | 433 |
case OPCODE_SILENCE_FRAME: |
434 |
- av_dlog(NULL, "silence frame\n"); |
|
434 |
+ av_log(NULL, AV_LOG_TRACE, "silence frame\n"); |
|
435 | 435 |
avio_skip(pb, opcode_size); |
436 | 436 |
break; |
437 | 437 |
|
438 | 438 |
case OPCODE_INIT_VIDEO_MODE: |
439 |
- av_dlog(NULL, "initialize video mode\n"); |
|
439 |
+ av_log(NULL, AV_LOG_TRACE, "initialize video mode\n"); |
|
440 | 440 |
avio_skip(pb, opcode_size); |
441 | 441 |
break; |
442 | 442 |
|
443 | 443 |
case OPCODE_CREATE_GRADIENT: |
444 |
- av_dlog(NULL, "create gradient\n"); |
|
444 |
+ av_log(NULL, AV_LOG_TRACE, "create gradient\n"); |
|
445 | 445 |
avio_skip(pb, opcode_size); |
446 | 446 |
break; |
447 | 447 |
|
448 | 448 |
case OPCODE_SET_PALETTE: |
449 |
- av_dlog(NULL, "set palette\n"); |
|
449 |
+ av_log(NULL, AV_LOG_TRACE, "set palette\n"); |
|
450 | 450 |
/* check for the logical maximum palette size |
451 | 451 |
* (3 * 256 + 4 bytes) */ |
452 | 452 |
if (opcode_size > 0x304) { |
453 |
- av_dlog(NULL, "demux_ipmovie: set_palette opcode too large\n"); |
|
453 |
+ av_log(NULL, AV_LOG_TRACE, "demux_ipmovie: set_palette opcode too large\n"); |
|
454 | 454 |
chunk_type = CHUNK_BAD; |
455 | 455 |
break; |
456 | 456 |
} |
... | ... |
@@ -464,7 +464,7 @@ static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, |
464 | 464 |
last_color = first_color + AV_RL16(&scratch[2]) - 1; |
465 | 465 |
/* sanity check (since they are 16 bit values) */ |
466 | 466 |
if ((first_color > 0xFF) || (last_color > 0xFF)) { |
467 |
- av_dlog(NULL, "demux_ipmovie: set_palette indexes out of range (%d -> %d)\n", |
|
467 |
+ av_log(NULL, AV_LOG_TRACE, "demux_ipmovie: set_palette indexes out of range (%d -> %d)\n", |
|
468 | 468 |
first_color, last_color); |
469 | 469 |
chunk_type = CHUNK_BAD; |
470 | 470 |
break; |
... | ... |
@@ -482,12 +482,12 @@ static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, |
482 | 482 |
break; |
483 | 483 |
|
484 | 484 |
case OPCODE_SET_PALETTE_COMPRESSED: |
485 |
- av_dlog(NULL, "set palette compressed\n"); |
|
485 |
+ av_log(NULL, AV_LOG_TRACE, "set palette compressed\n"); |
|
486 | 486 |
avio_skip(pb, opcode_size); |
487 | 487 |
break; |
488 | 488 |
|
489 | 489 |
case OPCODE_SET_DECODING_MAP: |
490 |
- av_dlog(NULL, "set decoding map\n"); |
|
490 |
+ av_log(NULL, AV_LOG_TRACE, "set decoding map\n"); |
|
491 | 491 |
|
492 | 492 |
/* log position and move on for now */ |
493 | 493 |
s->decode_map_chunk_offset = avio_tell(pb); |
... | ... |
@@ -496,7 +496,7 @@ static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, |
496 | 496 |
break; |
497 | 497 |
|
498 | 498 |
case OPCODE_VIDEO_DATA: |
499 |
- av_dlog(NULL, "set video data\n"); |
|
499 |
+ av_log(NULL, AV_LOG_TRACE, "set video data\n"); |
|
500 | 500 |
|
501 | 501 |
/* log position and move on for now */ |
502 | 502 |
s->video_chunk_offset = avio_tell(pb); |
... | ... |
@@ -505,7 +505,7 @@ static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, |
505 | 505 |
break; |
506 | 506 |
|
507 | 507 |
default: |
508 |
- av_dlog(NULL, "*** unknown opcode type\n"); |
|
508 |
+ av_log(NULL, AV_LOG_TRACE, "*** unknown opcode type\n"); |
|
509 | 509 |
chunk_type = CHUNK_BAD; |
510 | 510 |
break; |
511 | 511 |
|
... | ... |
@@ -404,7 +404,7 @@ int ff_mp4_read_descr(AVFormatContext *fc, AVIOContext *pb, int *tag) |
404 | 404 |
int len; |
405 | 405 |
*tag = avio_r8(pb); |
406 | 406 |
len = ff_mp4_read_descr_len(pb); |
407 |
- av_dlog(fc, "MPEG4 description: tag=0x%02x len=%d\n", *tag, len); |
|
407 |
+ av_log(fc, AV_LOG_TRACE, "MPEG4 description: tag=0x%02x len=%d\n", *tag, len); |
|
408 | 408 |
return len; |
409 | 409 |
} |
410 | 410 |
|
... | ... |
@@ -443,10 +443,10 @@ int ff_mp4_read_dec_config_descr(AVFormatContext *fc, AVStream *st, AVIOContext |
443 | 443 |
avio_rb32(pb); /* avg bitrate */ |
444 | 444 |
|
445 | 445 |
st->codec->codec_id= ff_codec_get_id(ff_mp4_obj_type, object_type_id); |
446 |
- av_dlog(fc, "esds object type id 0x%02x\n", object_type_id); |
|
446 |
+ av_log(fc, AV_LOG_TRACE, "esds object type id 0x%02x\n", object_type_id); |
|
447 | 447 |
len = ff_mp4_read_descr(fc, pb, &tag); |
448 | 448 |
if (tag == MP4DecSpecificDescrTag) { |
449 |
- av_dlog(fc, "Specific MPEG4 header len=%d\n", len); |
|
449 |
+ av_log(fc, AV_LOG_TRACE, "Specific MPEG4 header len=%d\n", len); |
|
450 | 450 |
if (!len || (uint64_t)len > (1<<30)) |
451 | 451 |
return -1; |
452 | 452 |
av_free(st->codec->extradata); |
... | ... |
@@ -466,7 +466,7 @@ int ff_mp4_read_dec_config_descr(AVFormatContext *fc, AVStream *st, AVIOContext |
466 | 466 |
st->codec->sample_rate = cfg.ext_sample_rate; |
467 | 467 |
else |
468 | 468 |
st->codec->sample_rate = cfg.sample_rate; |
469 |
- av_dlog(fc, "mp4a config channels %d obj %d ext obj %d " |
|
469 |
+ av_log(fc, AV_LOG_TRACE, "mp4a config channels %d obj %d ext obj %d " |
|
470 | 470 |
"sample rate %d ext sample rate %d\n", st->codec->channels, |
471 | 471 |
cfg.object_type, cfg.ext_object_type, |
472 | 472 |
cfg.sample_rate, cfg.ext_sample_rate); |
... | ... |
@@ -123,7 +123,7 @@ static int read_data_packet(MMSHContext *mmsh, const int len) |
123 | 123 |
return AVERROR(EIO); |
124 | 124 |
} |
125 | 125 |
res = ffurl_read_complete(mms->mms_hd, mms->in_buffer, len); |
126 |
- av_dlog(NULL, "Data packet len = %d\n", len); |
|
126 |
+ av_log(NULL, AV_LOG_TRACE, "Data packet len = %d\n", len); |
|
127 | 127 |
if (res != len) { |
128 | 128 |
av_log(NULL, AV_LOG_ERROR, "Read data packet failed!\n"); |
129 | 129 |
return AVERROR(EIO); |
... | ... |
@@ -157,7 +157,7 @@ static int get_http_header_data(MMSHContext *mmsh) |
157 | 157 |
if (mms->asf_header) { |
158 | 158 |
if (len != mms->asf_header_size) { |
159 | 159 |
mms->asf_header_size = len; |
160 |
- av_dlog(NULL, "Header len changed from %d to %d\n", |
|
160 |
+ av_log(NULL, AV_LOG_TRACE, "Header len changed from %d to %d\n", |
|
161 | 161 |
mms->asf_header_size, len); |
162 | 162 |
av_freep(&mms->asf_header); |
163 | 163 |
} |
... | ... |
@@ -202,7 +202,7 @@ static int get_http_header_data(MMSHContext *mmsh) |
202 | 202 |
av_log(NULL, AV_LOG_ERROR, "Read other chunk type data failed!\n"); |
203 | 203 |
return AVERROR(EIO); |
204 | 204 |
} else { |
205 |
- av_dlog(NULL, "Skip chunk type %d \n", chunk_type); |
|
205 |
+ av_log(NULL, AV_LOG_TRACE, "Skip chunk type %d \n", chunk_type); |
|
206 | 206 |
continue; |
207 | 207 |
} |
208 | 208 |
} |
... | ... |
@@ -289,7 +289,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags) |
289 | 289 |
av_log(NULL, AV_LOG_ERROR, "Build play request failed!\n"); |
290 | 290 |
goto fail; |
291 | 291 |
} |
292 |
- av_dlog(NULL, "out_buffer is %s", headers); |
|
292 |
+ av_log(NULL, AV_LOG_TRACE, "out_buffer is %s", headers); |
|
293 | 293 |
av_opt_set(mms->mms_hd->priv_data, "headers", headers, 0); |
294 | 294 |
|
295 | 295 |
err = ffurl_connect(mms->mms_hd, NULL); |
... | ... |
@@ -303,12 +303,12 @@ static int mmsh_open(URLContext *h, const char *uri, int flags) |
303 | 303 |
goto fail; |
304 | 304 |
} |
305 | 305 |
|
306 |
- av_dlog(NULL, "Connection successfully open\n"); |
|
306 |
+ av_log(NULL, AV_LOG_TRACE, "Connection successfully open\n"); |
|
307 | 307 |
return 0; |
308 | 308 |
fail: |
309 | 309 |
av_freep(&stream_selection); |
310 | 310 |
mmsh_close(h); |
311 |
- av_dlog(NULL, "Connection failed with error %d\n", err); |
|
311 |
+ av_log(NULL, AV_LOG_TRACE, "Connection failed with error %d\n", err); |
|
312 | 312 |
return err; |
313 | 313 |
} |
314 | 314 |
|
... | ... |
@@ -208,11 +208,11 @@ static int send_media_file_request(MMSTContext *mmst) |
208 | 208 |
static void handle_packet_stream_changing_type(MMSTContext *mmst) |
209 | 209 |
{ |
210 | 210 |
MMSContext *mms = &mmst->mms; |
211 |
- av_dlog(NULL, "Stream changing!\n"); |
|
211 |
+ av_log(NULL, AV_LOG_TRACE, "Stream changing!\n"); |
|
212 | 212 |
|
213 | 213 |
// 40 is the packet header size, 7 is the prefix size. |
214 | 214 |
mmst->header_packet_id= AV_RL32(mms->in_buffer + 40 + 7); |
215 |
- av_dlog(NULL, "Changed header prefix to 0x%x", mmst->header_packet_id); |
|
215 |
+ av_log(NULL, AV_LOG_TRACE, "Changed header prefix to 0x%x", mmst->header_packet_id); |
|
216 | 216 |
} |
217 | 217 |
|
218 | 218 |
static int send_keepalive_packet(MMSTContext *mmst) |
... | ... |
@@ -272,7 +272,7 @@ static MMSSCPacketType get_tcp_server_response(MMSTContext *mmst) |
272 | 272 |
} |
273 | 273 |
|
274 | 274 |
length_remaining= AV_RL32(mms->in_buffer+8) + 4; |
275 |
- av_dlog(NULL, "Length remaining is %d\n", length_remaining); |
|
275 |
+ av_log(NULL, AV_LOG_TRACE, "Length remaining is %d\n", length_remaining); |
|
276 | 276 |
// read the rest of the packet. |
277 | 277 |
if (length_remaining < 0 |
278 | 278 |
|| length_remaining > sizeof(mms->in_buffer) - 12) { |
... | ... |
@@ -351,7 +351,7 @@ static MMSSCPacketType get_tcp_server_response(MMSTContext *mmst) |
351 | 351 |
} else if(packet_id_type == mmst->packet_id) { |
352 | 352 |
packet_type = SC_PKT_ASF_MEDIA; |
353 | 353 |
} else { |
354 |
- av_dlog(NULL, "packet id type %d is old.", packet_id_type); |
|
354 |
+ av_log(NULL, AV_LOG_TRACE, "packet id type %d is old.", packet_id_type); |
|
355 | 355 |
continue; |
356 | 356 |
} |
357 | 357 |
} |
... | ... |
@@ -377,7 +377,7 @@ static int mms_safe_send_recv(MMSTContext *mmst, |
377 | 377 |
if(send_fun) { |
378 | 378 |
int ret = send_fun(mmst); |
379 | 379 |
if (ret < 0) { |
380 |
- av_dlog(NULL, "Send Packet error before expecting recv packet %d\n", expect_type); |
|
380 |
+ av_log(NULL, AV_LOG_TRACE, "Send Packet error before expecting recv packet %d\n", expect_type); |
|
381 | 381 |
return ret; |
382 | 382 |
} |
383 | 383 |
} |
... | ... |
@@ -552,7 +552,7 @@ static int mms_open(URLContext *h, const char *uri, int flags) |
552 | 552 |
} |
553 | 553 |
err = ff_mms_asf_header_parser(mms); |
554 | 554 |
if (err) { |
555 |
- av_dlog(NULL, "asf header parsed failed!\n"); |
|
555 |
+ av_log(NULL, AV_LOG_TRACE, "asf header parsed failed!\n"); |
|
556 | 556 |
goto fail; |
557 | 557 |
} |
558 | 558 |
mms->header_parsed = 1; |
... | ... |
@@ -569,11 +569,11 @@ static int mms_open(URLContext *h, const char *uri, int flags) |
569 | 569 |
if (err) { |
570 | 570 |
goto fail; |
571 | 571 |
} |
572 |
- av_dlog(NULL, "Leaving open (success)\n"); |
|
572 |
+ av_log(NULL, AV_LOG_TRACE, "Leaving open (success)\n"); |
|
573 | 573 |
return 0; |
574 | 574 |
fail: |
575 | 575 |
mms_close(h); |
576 |
- av_dlog(NULL, "Leaving open (failure: %d)\n", err); |
|
576 |
+ av_log(NULL, AV_LOG_TRACE, "Leaving open (failure: %d)\n", err); |
|
577 | 577 |
return err; |
578 | 578 |
} |
579 | 579 |
|
... | ... |
@@ -606,12 +606,12 @@ static int mms_read(URLContext *h, uint8_t *buf, int size) |
606 | 606 |
// copy the data to the packet buffer. |
607 | 607 |
result = ff_mms_read_data(mms, buf, size); |
608 | 608 |
if (result == 0) { |
609 |
- av_dlog(NULL, "Read ASF media packet size is zero!\n"); |
|
609 |
+ av_log(NULL, AV_LOG_TRACE, "Read ASF media packet size is zero!\n"); |
|
610 | 610 |
break; |
611 | 611 |
} |
612 | 612 |
} |
613 | 613 |
} else { |
614 |
- av_dlog(NULL, "read packet error!\n"); |
|
614 |
+ av_log(NULL, AV_LOG_TRACE, "read packet error!\n"); |
|
615 | 615 |
break; |
616 | 616 |
} |
617 | 617 |
} |
... | ... |
@@ -404,8 +404,8 @@ static int mov_read_udta_string(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
404 | 404 |
av_dict_set(&c->fc->metadata, key2, str, 0); |
405 | 405 |
} |
406 | 406 |
} |
407 |
- av_dlog(c->fc, "lang \"%3s\" ", language); |
|
408 |
- av_dlog(c->fc, "tag \"%s\" value \"%s\" atom \"%.4s\" %d %"PRId64"\n", |
|
407 |
+ av_log(c->fc, AV_LOG_TRACE, "lang \"%3s\" ", language); |
|
408 |
+ av_log(c->fc, AV_LOG_TRACE, "tag \"%s\" value \"%s\" atom \"%.4s\" %d %"PRId64"\n", |
|
409 | 409 |
key, str, (char*)&atom.type, str_size_alloc, atom.size); |
410 | 410 |
|
411 | 411 |
av_freep(&str); |
... | ... |
@@ -477,7 +477,7 @@ static int mov_read_dref(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
477 | 477 |
|
478 | 478 |
dref->type = avio_rl32(pb); |
479 | 479 |
avio_rb32(pb); // version + flags |
480 |
- av_dlog(c->fc, "type %.4s size %d\n", (char*)&dref->type, size); |
|
480 |
+ av_log(c->fc, AV_LOG_TRACE, "type %.4s size %d\n", (char*)&dref->type, size); |
|
481 | 481 |
|
482 | 482 |
if (dref->type == MKTAG('a','l','i','s') && size > 150) { |
483 | 483 |
/* macintosh alias record */ |
... | ... |
@@ -573,8 +573,8 @@ static int mov_read_hdlr(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
573 | 573 |
ctype = avio_rl32(pb); |
574 | 574 |
type = avio_rl32(pb); /* component subtype */ |
575 | 575 |
|
576 |
- av_dlog(c->fc, "ctype= %.4s (0x%08x)\n", (char*)&ctype, ctype); |
|
577 |
- av_dlog(c->fc, "stype= %.4s\n", (char*)&type); |
|
576 |
+ av_log(c->fc, AV_LOG_TRACE, "ctype= %.4s (0x%08x)\n", (char*)&ctype, ctype); |
|
577 |
+ av_log(c->fc, AV_LOG_TRACE, "stype= %.4s\n", (char*)&type); |
|
578 | 578 |
|
579 | 579 |
if (type == MKTAG('v','i','d','e')) |
580 | 580 |
st->codec->codec_type = AVMEDIA_TYPE_VIDEO; |
... | ... |
@@ -811,7 +811,7 @@ static int mov_read_moov(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
811 | 811 |
static int mov_read_moof(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
812 | 812 |
{ |
813 | 813 |
c->fragment.moof_offset = c->fragment.implicit_offset = avio_tell(pb) - 8; |
814 |
- av_dlog(c->fc, "moof offset %"PRIx64"\n", c->fragment.moof_offset); |
|
814 |
+ av_log(c->fc, AV_LOG_TRACE, "moof offset %"PRIx64"\n", c->fragment.moof_offset); |
|
815 | 815 |
return mov_read_default(c, pb, atom); |
816 | 816 |
} |
817 | 817 |
|
... | ... |
@@ -889,7 +889,7 @@ static int mov_read_mvhd(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
889 | 889 |
mov_metadata_creation_time(&c->fc->metadata, creation_time); |
890 | 890 |
c->time_scale = avio_rb32(pb); /* time scale */ |
891 | 891 |
|
892 |
- av_dlog(c->fc, "time scale = %i\n", c->time_scale); |
|
892 |
+ av_log(c->fc, AV_LOG_TRACE, "time scale = %i\n", c->time_scale); |
|
893 | 893 |
|
894 | 894 |
c->duration = (version == 1) ? avio_rb64(pb) : avio_rb32(pb); /* duration */ |
895 | 895 |
avio_rb32(pb); /* preferred scale */ |
... | ... |
@@ -931,7 +931,7 @@ static int mov_read_smi(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
931 | 931 |
st->codec->extradata_size = 0x5a + atom.size; |
932 | 932 |
memcpy(st->codec->extradata, "SVQ3", 4); // fake |
933 | 933 |
avio_read(pb, st->codec->extradata + 0x5a, atom.size); |
934 |
- av_dlog(c->fc, "Reading SMI %"PRId64" %s\n", atom.size, st->codec->extradata + 0x5a); |
|
934 |
+ av_log(c->fc, AV_LOG_TRACE, "Reading SMI %"PRId64" %s\n", atom.size, st->codec->extradata + 0x5a); |
|
935 | 935 |
return 0; |
936 | 936 |
} |
937 | 937 |
|
... | ... |
@@ -945,7 +945,7 @@ static int mov_read_enda(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
945 | 945 |
st = c->fc->streams[c->fc->nb_streams-1]; |
946 | 946 |
|
947 | 947 |
little_endian = !!avio_rb16(pb); |
948 |
- av_dlog(c->fc, "enda %d\n", little_endian); |
|
948 |
+ av_log(c->fc, AV_LOG_TRACE, "enda %d\n", little_endian); |
|
949 | 949 |
if (little_endian == 1) { |
950 | 950 |
switch (st->codec->codec_id) { |
951 | 951 |
case AV_CODEC_ID_PCM_S24BE: |
... | ... |
@@ -989,12 +989,13 @@ static int mov_read_colr(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
989 | 989 |
color_trc = avio_rb16(pb); |
990 | 990 |
color_matrix = avio_rb16(pb); |
991 | 991 |
|
992 |
- av_dlog(c->fc, "%s: pri %"PRIu16" trc %"PRIu16" matrix %"PRIu16"", |
|
993 |
- color_parameter_type, color_primaries, color_trc, color_matrix); |
|
992 |
+ av_log(c->fc, AV_LOG_TRACE, |
|
993 |
+ "%s: pri %"PRIu16" trc %"PRIu16" matrix %"PRIu16"", |
|
994 |
+ color_parameter_type, color_primaries, color_trc, color_matrix); |
|
994 | 995 |
|
995 | 996 |
if (!strncmp(color_parameter_type, "nclx", 4)) { |
996 | 997 |
uint8_t color_range = avio_r8(pb) >> 7; |
997 |
- av_dlog(c->fc, " full %"PRIu8"", color_range); |
|
998 |
+ av_log(c->fc, AV_LOG_TRACE, " full %"PRIu8"", color_range); |
|
998 | 999 |
if (color_range) |
999 | 1000 |
st->codec->color_range = AVCOL_RANGE_JPEG; |
1000 | 1001 |
else |
... | ... |
@@ -1031,7 +1032,7 @@ static int mov_read_colr(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
1031 | 1031 |
case 7: st->codec->colorspace = AVCOL_SPC_SMPTE240M; break; |
1032 | 1032 |
} |
1033 | 1033 |
} |
1034 |
- av_dlog(c->fc, "\n"); |
|
1034 |
+ av_log(c->fc, AV_LOG_TRACE, "\n"); |
|
1035 | 1035 |
|
1036 | 1036 |
return 0; |
1037 | 1037 |
} |
... | ... |
@@ -1341,7 +1342,7 @@ static void mov_parse_stsd_video(MOVContext *c, AVIOContext *pb, |
1341 | 1341 |
|
1342 | 1342 |
st->codec->bits_per_coded_sample = avio_rb16(pb); /* depth */ |
1343 | 1343 |
color_table_id = avio_rb16(pb); /* colortable id */ |
1344 |
- av_dlog(c->fc, "depth %d, ctab id %d\n", |
|
1344 |
+ av_log(c->fc, AV_LOG_TRACE, "depth %d, ctab id %d\n", |
|
1345 | 1345 |
st->codec->bits_per_coded_sample, color_table_id); |
1346 | 1346 |
/* figure out the palette situation */ |
1347 | 1347 |
color_depth = st->codec->bits_per_coded_sample & 0x1F; |
... | ... |
@@ -1421,7 +1422,7 @@ static void mov_parse_stsd_audio(MOVContext *c, AVIOContext *pb, |
1421 | 1421 |
|
1422 | 1422 |
st->codec->channels = avio_rb16(pb); /* channel count */ |
1423 | 1423 |
st->codec->bits_per_coded_sample = avio_rb16(pb); /* sample size */ |
1424 |
- av_dlog(c->fc, "audio channels %d\n", st->codec->channels); |
|
1424 |
+ av_log(c->fc, AV_LOG_TRACE, "audio channels %d\n", st->codec->channels); |
|
1425 | 1425 |
|
1426 | 1426 |
sc->audio_cid = avio_rb16(pb); |
1427 | 1427 |
avio_rb16(pb); /* packet size = 0 */ |
... | ... |
@@ -1429,7 +1430,7 @@ static void mov_parse_stsd_audio(MOVContext *c, AVIOContext *pb, |
1429 | 1429 |
st->codec->sample_rate = ((avio_rb32(pb) >> 16)); |
1430 | 1430 |
|
1431 | 1431 |
// Read QT version 1 fields. In version 0 these do not exist. |
1432 |
- av_dlog(c->fc, "version =%d, isom =%d\n", version, c->isom); |
|
1432 |
+ av_log(c->fc, AV_LOG_TRACE, "version =%d, isom =%d\n", version, c->isom); |
|
1433 | 1433 |
if (!c->isom) { |
1434 | 1434 |
if (version == 1) { |
1435 | 1435 |
sc->samples_per_frame = avio_rb32(pb); |
... | ... |
@@ -1707,7 +1708,7 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries) |
1707 | 1707 |
|
1708 | 1708 |
id = mov_codec_id(st, format); |
1709 | 1709 |
|
1710 |
- av_dlog(c->fc, "size=%"PRIu32" 4CC= %"PRIu8"%"PRIu8"%"PRIu8"%"PRIu8" codec_type=%d\n", size, |
|
1710 |
+ av_log(c->fc, AV_LOG_TRACE, "size=%"PRIu32" 4CC= %"PRIu8"%"PRIu8"%"PRIu8"%"PRIu8" codec_type=%d\n", size, |
|
1711 | 1711 |
(format >> 0) & 0xff, (format >> 8) & 0xff, (format >> 16) & 0xff, |
1712 | 1712 |
(format >> 24) & 0xff, st->codec->codec_type); |
1713 | 1713 |
|
... | ... |
@@ -1769,7 +1770,7 @@ static int mov_read_stsc(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
1769 | 1769 |
|
1770 | 1770 |
entries = avio_rb32(pb); |
1771 | 1771 |
|
1772 |
- av_dlog(c->fc, "track[%i].stsc.entries = %i\n", c->fc->nb_streams-1, entries); |
|
1772 |
+ av_log(c->fc, AV_LOG_TRACE, "track[%i].stsc.entries = %i\n", c->fc->nb_streams-1, entries); |
|
1773 | 1773 |
|
1774 | 1774 |
if (!entries) |
1775 | 1775 |
return 0; |
... | ... |
@@ -1815,7 +1816,7 @@ static int mov_read_stps(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
1815 | 1815 |
|
1816 | 1816 |
for (i = 0; i < entries && !pb->eof_reached; i++) { |
1817 | 1817 |
sc->stps_data[i] = avio_rb32(pb); |
1818 |
- //av_dlog(c->fc, "stps %d\n", sc->stps_data[i]); |
|
1818 |
+ //av_log(c->fc, AV_LOG_TRACE, "stps %d\n", sc->stps_data[i]); |
|
1819 | 1819 |
} |
1820 | 1820 |
|
1821 | 1821 |
sc->stps_count = i; |
... | ... |
@@ -1842,7 +1843,7 @@ static int mov_read_stss(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
1842 | 1842 |
|
1843 | 1843 |
entries = avio_rb32(pb); |
1844 | 1844 |
|
1845 |
- av_dlog(c->fc, "keyframe_count = %d\n", entries); |
|
1845 |
+ av_log(c->fc, AV_LOG_TRACE, "keyframe_count = %d\n", entries); |
|
1846 | 1846 |
|
1847 | 1847 |
if (!entries) |
1848 | 1848 |
{ |
... | ... |
@@ -1858,7 +1859,7 @@ static int mov_read_stss(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
1858 | 1858 |
|
1859 | 1859 |
for (i = 0; i < entries && !pb->eof_reached; i++) { |
1860 | 1860 |
sc->keyframes[i] = avio_rb32(pb); |
1861 |
- //av_dlog(c->fc, "keyframes[]=%d\n", sc->keyframes[i]); |
|
1861 |
+ //av_log(c->fc, AV_LOG_TRACE, "keyframes[]=%d\n", sc->keyframes[i]); |
|
1862 | 1862 |
} |
1863 | 1863 |
|
1864 | 1864 |
sc->keyframe_count = i; |
... | ... |
@@ -1897,7 +1898,7 @@ static int mov_read_stsz(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
1897 | 1897 |
} |
1898 | 1898 |
entries = avio_rb32(pb); |
1899 | 1899 |
|
1900 |
- av_dlog(c->fc, "sample_size = %d sample_count = %d\n", sc->sample_size, entries); |
|
1900 |
+ av_log(c->fc, AV_LOG_TRACE, "sample_size = %d sample_count = %d\n", sc->sample_size, entries); |
|
1901 | 1901 |
|
1902 | 1902 |
sc->sample_count = entries; |
1903 | 1903 |
if (sample_size) |
... | ... |
@@ -1963,7 +1964,7 @@ static int mov_read_stts(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
1963 | 1963 |
avio_rb24(pb); /* flags */ |
1964 | 1964 |
entries = avio_rb32(pb); |
1965 | 1965 |
|
1966 |
- av_dlog(c->fc, "track[%i].stts.entries = %i\n", |
|
1966 |
+ av_log(c->fc, AV_LOG_TRACE, "track[%i].stts.entries = %i\n", |
|
1967 | 1967 |
c->fc->nb_streams-1, entries); |
1968 | 1968 |
|
1969 | 1969 |
if (!entries) |
... | ... |
@@ -1989,7 +1990,7 @@ static int mov_read_stts(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
1989 | 1989 |
sc->stts_data[i].count= sample_count; |
1990 | 1990 |
sc->stts_data[i].duration= sample_duration; |
1991 | 1991 |
|
1992 |
- av_dlog(c->fc, "sample_count=%d, sample_duration=%d\n", |
|
1992 |
+ av_log(c->fc, AV_LOG_TRACE, "sample_count=%d, sample_duration=%d\n", |
|
1993 | 1993 |
sample_count, sample_duration); |
1994 | 1994 |
|
1995 | 1995 |
duration+=(int64_t)sample_duration*sample_count; |
... | ... |
@@ -2023,7 +2024,7 @@ static int mov_read_ctts(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
2023 | 2023 |
avio_rb24(pb); /* flags */ |
2024 | 2024 |
entries = avio_rb32(pb); |
2025 | 2025 |
|
2026 |
- av_dlog(c->fc, "track[%i].ctts.entries = %i\n", c->fc->nb_streams-1, entries); |
|
2026 |
+ av_log(c->fc, AV_LOG_TRACE, "track[%i].ctts.entries = %i\n", c->fc->nb_streams-1, entries); |
|
2027 | 2027 |
|
2028 | 2028 |
if (!entries) |
2029 | 2029 |
return 0; |
... | ... |
@@ -2048,7 +2049,7 @@ static int mov_read_ctts(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
2048 | 2048 |
if (pb->eof_reached) |
2049 | 2049 |
return AVERROR_EOF; |
2050 | 2050 |
|
2051 |
- av_dlog(c->fc, "dts shift %d\n", sc->dts_shift); |
|
2051 |
+ av_log(c->fc, AV_LOG_TRACE, "dts shift %d\n", sc->dts_shift); |
|
2052 | 2052 |
|
2053 | 2053 |
return 0; |
2054 | 2054 |
} |
... | ... |
@@ -2185,7 +2186,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st) |
2185 | 2185 |
e->size = sample_size; |
2186 | 2186 |
e->min_distance = distance; |
2187 | 2187 |
e->flags = keyframe ? AVINDEX_KEYFRAME : 0; |
2188 |
- av_dlog(mov->fc, "AVIndex stream %d, sample %d, offset %"PRIx64", dts %"PRId64", " |
|
2188 |
+ av_log(mov->fc, AV_LOG_TRACE, "AVIndex stream %d, sample %d, offset %"PRIx64", dts %"PRId64", " |
|
2189 | 2189 |
"size %d, distance %d, keyframe %d\n", st->index, current_sample, |
2190 | 2190 |
current_offset, current_dts, sample_size, distance, keyframe); |
2191 | 2191 |
} |
... | ... |
@@ -2234,7 +2235,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st) |
2234 | 2234 |
total += chunk_count * count; |
2235 | 2235 |
} |
2236 | 2236 |
|
2237 |
- av_dlog(mov->fc, "chunk count %d\n", total); |
|
2237 |
+ av_log(mov->fc, AV_LOG_TRACE, "chunk count %d\n", total); |
|
2238 | 2238 |
if (total >= UINT_MAX / sizeof(*st->index_entries) - st->nb_index_entries) |
2239 | 2239 |
return; |
2240 | 2240 |
if (av_reallocp_array(&st->index_entries, |
... | ... |
@@ -2281,7 +2282,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st) |
2281 | 2281 |
e->size = size; |
2282 | 2282 |
e->min_distance = 0; |
2283 | 2283 |
e->flags = AVINDEX_KEYFRAME; |
2284 |
- av_dlog(mov->fc, "AVIndex stream %d, chunk %d, offset %"PRIx64", dts %"PRId64", " |
|
2284 |
+ av_log(mov->fc, AV_LOG_TRACE, "AVIndex stream %d, chunk %d, offset %"PRIx64", dts %"PRId64", " |
|
2285 | 2285 |
"size %d, duration %d\n", st->index, i, current_offset, current_dts, |
2286 | 2286 |
size, samples); |
2287 | 2287 |
|
... | ... |
@@ -2662,7 +2663,7 @@ static int mov_read_tfhd(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
2662 | 2662 |
avio_rb32(pb) : trex->size; |
2663 | 2663 |
frag->flags = flags & MOV_TFHD_DEFAULT_FLAGS ? |
2664 | 2664 |
avio_rb32(pb) : trex->flags; |
2665 |
- av_dlog(c->fc, "frag flags 0x%x\n", frag->flags); |
|
2665 |
+ av_log(c->fc, AV_LOG_TRACE, "frag flags 0x%x\n", frag->flags); |
|
2666 | 2666 |
return 0; |
2667 | 2667 |
} |
2668 | 2668 |
|
... | ... |
@@ -2753,7 +2754,7 @@ static int mov_read_trun(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
2753 | 2753 |
avio_r8(pb); /* version */ |
2754 | 2754 |
flags = avio_rb24(pb); |
2755 | 2755 |
entries = avio_rb32(pb); |
2756 |
- av_dlog(c->fc, "flags 0x%x entries %d\n", flags, entries); |
|
2756 |
+ av_log(c->fc, AV_LOG_TRACE, "flags 0x%x entries %d\n", flags, entries); |
|
2757 | 2757 |
|
2758 | 2758 |
/* Always assume the presence of composition time offsets. |
2759 | 2759 |
* Without this assumption, for instance, we cannot deal with a track in fragmented movies that meet the following. |
... | ... |
@@ -2783,7 +2784,7 @@ static int mov_read_trun(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
2783 | 2783 |
dts = sc->track_end - sc->time_offset; |
2784 | 2784 |
offset = frag->base_data_offset + data_offset; |
2785 | 2785 |
distance = 0; |
2786 |
- av_dlog(c->fc, "first sample flags 0x%x\n", first_sample_flags); |
|
2786 |
+ av_log(c->fc, AV_LOG_TRACE, "first sample flags 0x%x\n", first_sample_flags); |
|
2787 | 2787 |
for (i = 0; i < entries && !pb->eof_reached; i++) { |
2788 | 2788 |
unsigned sample_size = frag->size; |
2789 | 2789 |
int sample_flags = i ? frag->flags : first_sample_flags; |
... | ... |
@@ -2807,7 +2808,7 @@ static int mov_read_trun(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
2807 | 2807 |
distance = 0; |
2808 | 2808 |
av_add_index_entry(st, offset, dts, sample_size, distance, |
2809 | 2809 |
keyframe ? AVINDEX_KEYFRAME : 0); |
2810 |
- av_dlog(c->fc, "AVIndex stream %d, sample %d, offset %"PRIx64", dts %"PRId64", " |
|
2810 |
+ av_log(c->fc, AV_LOG_TRACE, "AVIndex stream %d, sample %d, offset %"PRIx64", dts %"PRId64", " |
|
2811 | 2811 |
"size %d, distance %d, keyframe %d\n", st->index, sc->sample_count+i, |
2812 | 2812 |
offset, dts, sample_size, distance, keyframe); |
2813 | 2813 |
distance++; |
... | ... |
@@ -2932,7 +2933,7 @@ static int mov_read_elst(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
2932 | 2932 |
av_log(c->fc, AV_LOG_WARNING, "multiple edit list entries, " |
2933 | 2933 |
"a/v desync might occur, patch welcome\n"); |
2934 | 2934 |
|
2935 |
- av_dlog(c->fc, "track[%i].edit_count = %i\n", c->fc->nb_streams-1, edit_count); |
|
2935 |
+ av_log(c->fc, AV_LOG_TRACE, "track[%i].edit_count = %i\n", c->fc->nb_streams-1, edit_count); |
|
2936 | 2936 |
return 0; |
2937 | 2937 |
} |
2938 | 2938 |
|
... | ... |
@@ -3017,7 +3018,7 @@ static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
3017 | 3017 |
a.size = avio_rb32(pb); |
3018 | 3018 |
a.type = avio_rl32(pb); |
3019 | 3019 |
} |
3020 |
- av_dlog(c->fc, "type: %08x '%.4s' parent:'%.4s' sz: %"PRId64" %"PRId64" %"PRId64"\n", |
|
3020 |
+ av_log(c->fc, AV_LOG_TRACE, "type: %08x '%.4s' parent:'%.4s' sz: %"PRId64" %"PRId64" %"PRId64"\n", |
|
3021 | 3021 |
a.type, (char*)&a.type, (char*)&atom.type, a.size, total_size, atom.size); |
3022 | 3022 |
total_size += 8; |
3023 | 3023 |
if (a.size == 1) { /* 64 bit extended size */ |
... | ... |
@@ -3258,7 +3259,7 @@ static int mov_read_header(AVFormatContext *s) |
3258 | 3258 |
mov_read_close(s); |
3259 | 3259 |
return AVERROR_INVALIDDATA; |
3260 | 3260 |
} |
3261 |
- av_dlog(mov->fc, "on_parse_exit_offset=%"PRId64"\n", avio_tell(pb)); |
|
3261 |
+ av_log(mov->fc, AV_LOG_TRACE, "on_parse_exit_offset=%"PRId64"\n", avio_tell(pb)); |
|
3262 | 3262 |
|
3263 | 3263 |
if (pb->seekable && mov->chapter_track > 0) |
3264 | 3264 |
mov_read_chapters(s); |
... | ... |
@@ -3336,7 +3337,7 @@ static AVIndexEntry *mov_find_next_sample(AVFormatContext *s, AVStream **st) |
3336 | 3336 |
if (msc->pb && msc->current_sample < avst->nb_index_entries) { |
3337 | 3337 |
AVIndexEntry *current_sample = &avst->index_entries[msc->current_sample]; |
3338 | 3338 |
int64_t dts = av_rescale(current_sample->timestamp, AV_TIME_BASE, msc->time_scale); |
3339 |
- av_dlog(s, "stream %d, sample %d, dts %"PRId64"\n", i, msc->current_sample, dts); |
|
3339 |
+ av_log(s, AV_LOG_TRACE, "stream %d, sample %d, dts %"PRId64"\n", i, msc->current_sample, dts); |
|
3340 | 3340 |
if (!sample || (!s->pb->seekable && current_sample->pos < sample->pos) || |
3341 | 3341 |
(s->pb->seekable && |
3342 | 3342 |
((msc->pb != s->pb && dts < best_dts) || (msc->pb == s->pb && |
... | ... |
@@ -3369,7 +3370,7 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt) |
3369 | 3369 |
if (mov_read_default(mov, s->pb, (MOVAtom){ AV_RL32("root"), INT64_MAX }) < 0 || |
3370 | 3370 |
s->pb->eof_reached) |
3371 | 3371 |
return AVERROR_EOF; |
3372 |
- av_dlog(s, "read fragments, offset 0x%"PRIx64"\n", avio_tell(s->pb)); |
|
3372 |
+ av_log(s, AV_LOG_TRACE, "read fragments, offset 0x%"PRIx64"\n", avio_tell(s->pb)); |
|
3373 | 3373 |
goto retry; |
3374 | 3374 |
} |
3375 | 3375 |
sc = st->priv_data; |
... | ... |
@@ -3431,7 +3432,7 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt) |
3431 | 3431 |
goto retry; |
3432 | 3432 |
pkt->flags |= sample->flags & AVINDEX_KEYFRAME ? AV_PKT_FLAG_KEY : 0; |
3433 | 3433 |
pkt->pos = sample->pos; |
3434 |
- av_dlog(s, "stream %d, pts %"PRId64", dts %"PRId64", pos 0x%"PRIx64", duration %d\n", |
|
3434 |
+ av_log(s, AV_LOG_TRACE, "stream %d, pts %"PRId64", dts %"PRId64", pos 0x%"PRIx64", duration %d\n", |
|
3435 | 3435 |
pkt->stream_index, pkt->pts, pkt->dts, pkt->pos, pkt->duration); |
3436 | 3436 |
return 0; |
3437 | 3437 |
} |
... | ... |
@@ -3443,13 +3444,13 @@ static int mov_seek_stream(AVFormatContext *s, AVStream *st, int64_t timestamp, |
3443 | 3443 |
int i; |
3444 | 3444 |
|
3445 | 3445 |
sample = av_index_search_timestamp(st, timestamp, flags); |
3446 |
- av_dlog(s, "stream %d, timestamp %"PRId64", sample %d\n", st->index, timestamp, sample); |
|
3446 |
+ av_log(s, AV_LOG_TRACE, "stream %d, timestamp %"PRId64", sample %d\n", st->index, timestamp, sample); |
|
3447 | 3447 |
if (sample < 0 && st->nb_index_entries && timestamp < st->index_entries[0].timestamp) |
3448 | 3448 |
sample = 0; |
3449 | 3449 |
if (sample < 0) /* not sure what to do */ |
3450 | 3450 |
return AVERROR_INVALIDDATA; |
3451 | 3451 |
sc->current_sample = sample; |
3452 |
- av_dlog(s, "stream %d, found sample %d\n", st->index, sc->current_sample); |
|
3452 |
+ av_log(s, AV_LOG_TRACE, "stream %d, found sample %d\n", st->index, sc->current_sample); |
|
3453 | 3453 |
/* adjust ctts index */ |
3454 | 3454 |
if (sc->ctts_data) { |
3455 | 3455 |
time_sample = 0; |
... | ... |
@@ -556,7 +556,7 @@ int ff_mov_read_chan(AVFormatContext *s, AVIOContext *pb, AVStream *st, |
556 | 556 |
bitmap = avio_rb32(pb); |
557 | 557 |
num_descr = avio_rb32(pb); |
558 | 558 |
|
559 |
- av_dlog(s, "chan: layout=%u bitmap=%u num_descr=%u\n", |
|
559 |
+ av_log(s, AV_LOG_TRACE, "chan: layout=%u bitmap=%u num_descr=%u\n", |
|
560 | 560 |
layout_tag, bitmap, num_descr); |
561 | 561 |
|
562 | 562 |
if (size < 12ULL + num_descr * 20ULL) |
... | ... |
@@ -530,7 +530,7 @@ found: |
530 | 530 |
pkt->dts = dts; |
531 | 531 |
pkt->pos = dummy_pos; |
532 | 532 |
pkt->stream_index = st->index; |
533 |
- av_dlog(s, "%d: pts=%0.3f dts=%0.3f size=%d\n", |
|
533 |
+ av_log(s, AV_LOG_TRACE, "%d: pts=%0.3f dts=%0.3f size=%d\n", |
|
534 | 534 |
pkt->stream_index, pkt->pts / 90000.0, pkt->dts / 90000.0, |
535 | 535 |
pkt->size); |
536 | 536 |
|
... | ... |
@@ -550,7 +550,7 @@ static int64_t mpegps_read_dts(AVFormatContext *s, int stream_index, |
550 | 550 |
for (;;) { |
551 | 551 |
len = mpegps_read_pes_header(s, &pos, &startcode, &pts, &dts); |
552 | 552 |
if (len < 0) { |
553 |
- av_dlog(s, "none (ret=%d)\n", len); |
|
553 |
+ av_log(s, AV_LOG_TRACE, "none (ret=%d)\n", len); |
|
554 | 554 |
return AV_NOPTS_VALUE; |
555 | 555 |
} |
556 | 556 |
if (startcode == s->streams[stream_index]->id && |
... | ... |
@@ -559,7 +559,7 @@ static int64_t mpegps_read_dts(AVFormatContext *s, int stream_index, |
559 | 559 |
} |
560 | 560 |
avio_skip(s->pb, len); |
561 | 561 |
} |
562 |
- av_dlog(s, "pos=0x%"PRIx64" dts=0x%"PRIx64" %0.3f\n", |
|
562 |
+ av_log(s, AV_LOG_TRACE, "pos=0x%"PRIx64" dts=0x%"PRIx64" %0.3f\n", |
|
563 | 563 |
pos, dts, dts / 90000.0); |
564 | 564 |
*ppos = pos; |
565 | 565 |
return dts; |
... | ... |
@@ -586,7 +586,7 @@ static int flush_packet(AVFormatContext *ctx, int stream_index, |
586 | 586 |
|
587 | 587 |
id = stream->id; |
588 | 588 |
|
589 |
- av_dlog(ctx, "packet ID=%2x PTS=%0.3f\n", id, pts / 90000.0); |
|
589 |
+ av_log(ctx, AV_LOG_TRACE, "packet ID=%2x PTS=%0.3f\n", id, pts / 90000.0); |
|
590 | 590 |
|
591 | 591 |
buf_ptr = buffer; |
592 | 592 |
|
... | ... |
@@ -988,7 +988,7 @@ retry: |
988 | 988 |
best_dts = pkt_desc->dts; |
989 | 989 |
} |
990 | 990 |
|
991 |
- av_dlog(ctx, "bumping scr, scr:%f, dts:%f\n", |
|
991 |
+ av_log(ctx, AV_LOG_TRACE, "bumping scr, scr:%f, dts:%f\n", |
|
992 | 992 |
scr / 90000.0, best_dts / 90000.0); |
993 | 993 |
if (best_dts == INT64_MAX) |
994 | 994 |
return 0; |
... | ... |
@@ -1022,7 +1022,7 @@ retry: |
1022 | 1022 |
} |
1023 | 1023 |
|
1024 | 1024 |
if (timestamp_packet) { |
1025 |
- av_dlog(ctx, "dts:%f pts:%f scr:%f stream:%d\n", |
|
1025 |
+ av_log(ctx, AV_LOG_TRACE, "dts:%f pts:%f scr:%f stream:%d\n", |
|
1026 | 1026 |
timestamp_packet->dts / 90000.0, |
1027 | 1027 |
timestamp_packet->pts / 90000.0, |
1028 | 1028 |
scr / 90000.0, best_i); |
... | ... |
@@ -1092,7 +1092,7 @@ static int mpeg_mux_write_packet(AVFormatContext *ctx, AVPacket *pkt) |
1092 | 1092 |
dts += 2 * preload; |
1093 | 1093 |
} |
1094 | 1094 |
|
1095 |
- av_dlog(ctx, "dts:%f pts:%f flags:%d stream:%d nopts:%d\n", |
|
1095 |
+ av_log(ctx, AV_LOG_TRACE, "dts:%f pts:%f flags:%d stream:%d nopts:%d\n", |
|
1096 | 1096 |
dts / 90000.0, pts / 90000.0, pkt->flags, |
1097 | 1097 |
pkt->stream_index, pts != AV_NOPTS_VALUE); |
1098 | 1098 |
if (!stream->premux_packet) |
... | ... |
@@ -353,7 +353,7 @@ static MpegTSFilter *mpegts_open_section_filter(MpegTSContext *ts, |
353 | 353 |
MpegTSFilter *filter; |
354 | 354 |
MpegTSSectionFilter *sec; |
355 | 355 |
|
356 |
- av_dlog(ts->stream, "Filter: pid=0x%x\n", pid); |
|
356 |
+ av_log(ts->stream, AV_LOG_TRACE, "Filter: pid=0x%x\n", pid); |
|
357 | 357 |
|
358 | 358 |
if (pid >= NB_PID_MAX || ts->pids[pid]) |
359 | 359 |
return NULL; |
... | ... |
@@ -465,7 +465,7 @@ static int get_packet_size(const uint8_t *buf, int size) |
465 | 465 |
score = analyze(buf, size, TS_PACKET_SIZE, NULL, 0); |
466 | 466 |
dvhs_score = analyze(buf, size, TS_DVHS_PACKET_SIZE, NULL, 0); |
467 | 467 |
fec_score = analyze(buf, size, TS_FEC_PACKET_SIZE, NULL, 0); |
468 |
- av_dlog(NULL, "score: %d, dvhs_score: %d, fec_score: %d \n", |
|
468 |
+ av_log(NULL, AV_LOG_TRACE, "score: %d, dvhs_score: %d, fec_score: %d \n", |
|
469 | 469 |
score, dvhs_score, fec_score); |
470 | 470 |
|
471 | 471 |
if (score > fec_score && score > dvhs_score) |
... | ... |
@@ -834,7 +834,7 @@ static int mpegts_push_data(MpegTSFilter *filter, |
834 | 834 |
pes->header[2] == 0x01) { |
835 | 835 |
/* it must be an mpeg2 PES stream */ |
836 | 836 |
code = pes->header[3] | 0x100; |
837 |
- av_dlog(pes->stream, "pid=%x pes_code=%#x\n", pes->pid, |
|
837 |
+ av_log(pes->stream, AV_LOG_TRACE, "pid=%x pes_code=%#x\n", pes->pid, |
|
838 | 838 |
code); |
839 | 839 |
|
840 | 840 |
if ((pes->st && pes->st->discard == AVDISCARD_ALL && |
... | ... |
@@ -870,7 +870,7 @@ static int mpegts_push_data(MpegTSFilter *filter, |
870 | 870 |
code != 0x1f8) { /* ITU-T Rec. H.222.1 type E stream */ |
871 | 871 |
pes->state = MPEGTS_PESHEADER; |
872 | 872 |
if (pes->st->codec->codec_id == AV_CODEC_ID_NONE) { |
873 |
- av_dlog(pes->stream, |
|
873 |
+ av_log(pes->stream, AV_LOG_TRACE, |
|
874 | 874 |
"pid=%x stream_type=%x probing\n", |
875 | 875 |
pes->pid, |
876 | 876 |
pes->stream_type); |
... | ... |
@@ -1356,7 +1356,7 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type |
1356 | 1356 |
if (desc_end > desc_list_end) |
1357 | 1357 |
return AVERROR_INVALIDDATA; |
1358 | 1358 |
|
1359 |
- av_dlog(fc, "tag: 0x%02x len=%d\n", desc_tag, desc_len); |
|
1359 |
+ av_log(fc, AV_LOG_TRACE, "tag: 0x%02x len=%d\n", desc_tag, desc_len); |
|
1360 | 1360 |
|
1361 | 1361 |
if (st->codec->codec_id == AV_CODEC_ID_NONE && |
1362 | 1362 |
stream_type == STREAM_TYPE_PRIVATE_DATA) |
... | ... |
@@ -1462,7 +1462,7 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type |
1462 | 1462 |
break; |
1463 | 1463 |
case 0x05: /* registration descriptor */ |
1464 | 1464 |
st->codec->codec_tag = bytestream_get_le32(pp); |
1465 |
- av_dlog(fc, "reg_desc=%.4s\n", (char *)&st->codec->codec_tag); |
|
1465 |
+ av_log(fc, AV_LOG_TRACE, "reg_desc=%.4s\n", (char *)&st->codec->codec_tag); |
|
1466 | 1466 |
if (st->codec->codec_id == AV_CODEC_ID_NONE) |
1467 | 1467 |
mpegts_find_stream_type(st, st->codec->codec_tag, REGD_types); |
1468 | 1468 |
break; |
... | ... |
@@ -1519,7 +1519,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len |
1519 | 1519 |
Mp4Descr mp4_descr[MAX_MP4_DESCR_COUNT] = { { 0 } }; |
1520 | 1520 |
int i; |
1521 | 1521 |
|
1522 |
- av_dlog(ts->stream, "PMT: len %i\n", section_len); |
|
1522 |
+ av_log(ts->stream, AV_LOG_TRACE, "PMT: len %i\n", section_len); |
|
1523 | 1523 |
hex_dump_debug(ts->stream, section, section_len); |
1524 | 1524 |
|
1525 | 1525 |
p_end = section + section_len - 4; |
... | ... |
@@ -1527,7 +1527,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len |
1527 | 1527 |
if (parse_section_header(h, &p, p_end) < 0) |
1528 | 1528 |
return; |
1529 | 1529 |
|
1530 |
- av_dlog(ts->stream, "sid=0x%x sec_num=%d/%d\n", |
|
1530 |
+ av_log(ts->stream, AV_LOG_TRACE, "sid=0x%x sec_num=%d/%d\n", |
|
1531 | 1531 |
h->id, h->sec_num, h->last_sec_num); |
1532 | 1532 |
|
1533 | 1533 |
if (h->tid != PMT_TID) |
... | ... |
@@ -1540,7 +1540,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len |
1540 | 1540 |
pcr_pid &= 0x1fff; |
1541 | 1541 |
add_pid_to_pmt(ts, h->id, pcr_pid); |
1542 | 1542 |
|
1543 |
- av_dlog(ts->stream, "pcr_pid=0x%x\n", pcr_pid); |
|
1543 |
+ av_log(ts->stream, AV_LOG_TRACE, "pcr_pid=0x%x\n", pcr_pid); |
|
1544 | 1544 |
|
1545 | 1545 |
program_info_length = get16(&p, p_end); |
1546 | 1546 |
if (program_info_length < 0) |
... | ... |
@@ -1551,7 +1551,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len |
1551 | 1551 |
tag = get8(&p, p_end); |
1552 | 1552 |
len = get8(&p, p_end); |
1553 | 1553 |
|
1554 |
- av_dlog(ts->stream, "program tag: 0x%02x len=%d\n", tag, len); |
|
1554 |
+ av_log(ts->stream, AV_LOG_TRACE, "program tag: 0x%02x len=%d\n", tag, len); |
|
1555 | 1555 |
|
1556 | 1556 |
if (len > program_info_length - 2) |
1557 | 1557 |
// something else is broken, exit the program_descriptors_loop |
... | ... |
@@ -1661,7 +1661,7 @@ static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len |
1661 | 1661 |
const uint8_t *p, *p_end; |
1662 | 1662 |
int sid, pmt_pid; |
1663 | 1663 |
|
1664 |
- av_dlog(ts->stream, "PAT:\n"); |
|
1664 |
+ av_log(ts->stream, AV_LOG_TRACE, "PAT:\n"); |
|
1665 | 1665 |
hex_dump_debug(ts->stream, section, section_len); |
1666 | 1666 |
|
1667 | 1667 |
p_end = section + section_len - 4; |
... | ... |
@@ -1681,7 +1681,7 @@ static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len |
1681 | 1681 |
break; |
1682 | 1682 |
pmt_pid &= 0x1fff; |
1683 | 1683 |
|
1684 |
- av_dlog(ts->stream, "sid=0x%x pid=0x%x\n", sid, pmt_pid); |
|
1684 |
+ av_log(ts->stream, AV_LOG_TRACE, "sid=0x%x pid=0x%x\n", sid, pmt_pid); |
|
1685 | 1685 |
|
1686 | 1686 |
if (sid == 0x0000) { |
1687 | 1687 |
/* NIT info */ |
... | ... |
@@ -1705,7 +1705,7 @@ static void sdt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len |
1705 | 1705 |
int onid, val, sid, desc_list_len, desc_tag, desc_len, service_type; |
1706 | 1706 |
char *name, *provider_name; |
1707 | 1707 |
|
1708 |
- av_dlog(ts->stream, "SDT:\n"); |
|
1708 |
+ av_log(ts->stream, AV_LOG_TRACE, "SDT:\n"); |
|
1709 | 1709 |
hex_dump_debug(ts->stream, section, section_len); |
1710 | 1710 |
|
1711 | 1711 |
p_end = section + section_len - 4; |
... | ... |
@@ -1743,7 +1743,7 @@ static void sdt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len |
1743 | 1743 |
if (desc_end > desc_list_end) |
1744 | 1744 |
break; |
1745 | 1745 |
|
1746 |
- av_dlog(ts->stream, "tag: 0x%02x len=%d\n", |
|
1746 |
+ av_log(ts->stream, AV_LOG_TRACE, "tag: 0x%02x len=%d\n", |
|
1747 | 1747 |
desc_tag, desc_len); |
1748 | 1748 |
|
1749 | 1749 |
switch (desc_tag) { |
... | ... |
@@ -1941,7 +1941,7 @@ static int handle_packets(MpegTSContext *ts, int nb_packets) |
1941 | 1941 |
|
1942 | 1942 |
if (avio_tell(s->pb) != ts->last_pos) { |
1943 | 1943 |
int i; |
1944 |
- av_dlog(ts->stream, "Skipping after seek\n"); |
|
1944 |
+ av_log(ts->stream, AV_LOG_TRACE, "Skipping after seek\n"); |
|
1945 | 1945 |
/* seek detected, flush pes buffer */ |
1946 | 1946 |
for (i = 0; i < NB_PID_MAX; i++) { |
1947 | 1947 |
if (ts->pids[i]) { |
... | ... |
@@ -1993,7 +1993,7 @@ static int mpegts_probe(AVProbeData *p) |
1993 | 1993 |
TS_DVHS_PACKET_SIZE, NULL, 1) * CHECK_COUNT / check_count; |
1994 | 1994 |
fec_score = analyze(p->buf, TS_FEC_PACKET_SIZE * check_count, |
1995 | 1995 |
TS_FEC_PACKET_SIZE, NULL, 1) * CHECK_COUNT / check_count; |
1996 |
- av_dlog(NULL, "score: %d, dvhs_score: %d, fec_score: %d \n", |
|
1996 |
+ av_log(NULL, AV_LOG_TRACE, "score: %d, dvhs_score: %d, fec_score: %d \n", |
|
1997 | 1997 |
score, dvhs_score, fec_score); |
1998 | 1998 |
|
1999 | 1999 |
/* we need a clear definition for the returned score otherwise |
... | ... |
@@ -2073,7 +2073,7 @@ static int mpegts_read_header(AVFormatContext *s) |
2073 | 2073 |
|
2074 | 2074 |
ts->auto_guess = 1; |
2075 | 2075 |
|
2076 |
- av_dlog(ts->stream, "tuning done\n"); |
|
2076 |
+ av_log(ts->stream, AV_LOG_TRACE, "tuning done\n"); |
|
2077 | 2077 |
|
2078 | 2078 |
s->ctx_flags |= AVFMTCTX_NOHEADER; |
2079 | 2079 |
} else { |
... | ... |
@@ -2124,7 +2124,7 @@ static int mpegts_read_header(AVFormatContext *s) |
2124 | 2124 |
s->bit_rate = TS_PACKET_SIZE * 8 * 27e6 / ts->pcr_incr; |
2125 | 2125 |
st->codec->bit_rate = s->bit_rate; |
2126 | 2126 |
st->start_time = ts->cur_pcr; |
2127 |
- av_dlog(ts->stream, "start=%0.3f pcr=%0.3f incr=%d\n", |
|
2127 |
+ av_log(ts->stream, AV_LOG_TRACE, "start=%0.3f pcr=%0.3f incr=%d\n", |
|
2128 | 2128 |
st->start_time / 1000000.0, pcrs[0] / 27e6, ts->pcr_incr); |
2129 | 2129 |
} |
2130 | 2130 |
|
... | ... |
@@ -1071,7 +1071,7 @@ static int mpegts_write_packet_internal(AVFormatContext *s, AVPacket *pkt) |
1071 | 1071 |
|
1072 | 1072 |
do { |
1073 | 1073 |
p = avpriv_find_start_code(p, buf_end, &state); |
1074 |
- av_dlog(s, "nal %d\n", state & 0x1f); |
|
1074 |
+ av_log(s, AV_LOG_TRACE, "nal %d\n", state & 0x1f); |
|
1075 | 1075 |
} while (p < buf_end && (state & 0x1f) != 9 && |
1076 | 1076 |
(state & 0x1f) != 5 && (state & 0x1f) != 1); |
1077 | 1077 |
|
... | ... |
@@ -264,7 +264,7 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt) |
264 | 264 |
int delay = FFMAX(st->codec->has_b_frames, !!st->codec->max_b_frames); |
265 | 265 |
int num, den, i; |
266 | 266 |
|
267 |
- av_dlog(s, "compute_pkt_fields2: pts:%" PRId64 " dts:%" PRId64 " cur_dts:%" PRId64 " b:%d size:%d st:%d\n", |
|
267 |
+ av_log(s, AV_LOG_TRACE, "compute_pkt_fields2: pts:%" PRId64 " dts:%" PRId64 " cur_dts:%" PRId64 " b:%d size:%d st:%d\n", |
|
268 | 268 |
pkt->pts, pkt->dts, st->cur_dts, delay, pkt->size, pkt->stream_index); |
269 | 269 |
|
270 | 270 |
/* if(pkt->pts == AV_NOPTS_VALUE && pkt->dts == AV_NOPTS_VALUE) |
... | ... |
@@ -308,7 +308,7 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt) |
308 | 308 |
return AVERROR(EINVAL); |
309 | 309 |
} |
310 | 310 |
|
311 |
- av_dlog(s, "av_write_frame: pts2:%"PRId64" dts2:%"PRId64"\n", |
|
311 |
+ av_log(s, AV_LOG_TRACE, "av_write_frame: pts2:%"PRId64" dts2:%"PRId64"\n", |
|
312 | 312 |
pkt->pts, pkt->dts); |
313 | 313 |
st->cur_dts = pkt->dts; |
314 | 314 |
|
... | ... |
@@ -560,7 +560,7 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt) |
560 | 560 |
if (pkt) { |
561 | 561 |
AVStream *st = s->streams[pkt->stream_index]; |
562 | 562 |
|
563 |
- av_dlog(s, "av_interleaved_write_frame size:%d dts:%" PRId64 " pts:%" PRId64 "\n", |
|
563 |
+ av_log(s, AV_LOG_TRACE, "av_interleaved_write_frame size:%d dts:%" PRId64 " pts:%" PRId64 "\n", |
|
564 | 564 |
pkt->size, pkt->dts, pkt->pts); |
565 | 565 |
if ((ret = compute_pkt_fields2(s, st, pkt)) < 0 && !(s->oformat->flags & AVFMT_NOTIMESTAMPS)) |
566 | 566 |
goto fail; |
... | ... |
@@ -570,7 +570,7 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt) |
570 | 570 |
goto fail; |
571 | 571 |
} |
572 | 572 |
} else { |
573 |
- av_dlog(s, "av_interleaved_write_frame FLUSH\n"); |
|
573 |
+ av_log(s, AV_LOG_TRACE, "av_interleaved_write_frame FLUSH\n"); |
|
574 | 574 |
flush = 1; |
575 | 575 |
} |
576 | 576 |
|
... | ... |
@@ -510,7 +510,7 @@ static int mxf_read_partition_pack(void *arg, AVIOContext *pb, int tag, int size |
510 | 510 |
} |
511 | 511 |
} |
512 | 512 |
|
513 |
- av_dlog(mxf->fc, |
|
513 |
+ av_log(mxf->fc, AV_LOG_TRACE, |
|
514 | 514 |
"PartitionPack: ThisPartition = 0x%"PRIX64 |
515 | 515 |
", PreviousPartition = 0x%"PRIX64", " |
516 | 516 |
"FooterPartition = 0x%"PRIX64", IndexSID = %i, BodySID = %i\n", |
... | ... |
@@ -775,32 +775,32 @@ static int mxf_read_index_table_segment(void *arg, AVIOContext *pb, int tag, int |
775 | 775 |
switch(tag) { |
776 | 776 |
case 0x3F05: |
777 | 777 |
segment->edit_unit_byte_count = avio_rb32(pb); |
778 |
- av_dlog(NULL, "EditUnitByteCount %d\n", segment->edit_unit_byte_count); |
|
778 |
+ av_log(NULL, AV_LOG_TRACE, "EditUnitByteCount %d\n", segment->edit_unit_byte_count); |
|
779 | 779 |
break; |
780 | 780 |
case 0x3F06: |
781 | 781 |
segment->index_sid = avio_rb32(pb); |
782 |
- av_dlog(NULL, "IndexSID %d\n", segment->index_sid); |
|
782 |
+ av_log(NULL, AV_LOG_TRACE, "IndexSID %d\n", segment->index_sid); |
|
783 | 783 |
break; |
784 | 784 |
case 0x3F07: |
785 | 785 |
segment->body_sid = avio_rb32(pb); |
786 |
- av_dlog(NULL, "BodySID %d\n", segment->body_sid); |
|
786 |
+ av_log(NULL, AV_LOG_TRACE, "BodySID %d\n", segment->body_sid); |
|
787 | 787 |
break; |
788 | 788 |
case 0x3F0A: |
789 |
- av_dlog(NULL, "IndexEntryArray found\n"); |
|
789 |
+ av_log(NULL, AV_LOG_TRACE, "IndexEntryArray found\n"); |
|
790 | 790 |
return mxf_read_index_entry_array(pb, segment); |
791 | 791 |
case 0x3F0B: |
792 | 792 |
segment->index_edit_rate.num = avio_rb32(pb); |
793 | 793 |
segment->index_edit_rate.den = avio_rb32(pb); |
794 |
- av_dlog(NULL, "IndexEditRate %d/%d\n", segment->index_edit_rate.num, |
|
794 |
+ av_log(NULL, AV_LOG_TRACE, "IndexEditRate %d/%d\n", segment->index_edit_rate.num, |
|
795 | 795 |
segment->index_edit_rate.den); |
796 | 796 |
break; |
797 | 797 |
case 0x3F0C: |
798 | 798 |
segment->index_start_position = avio_rb64(pb); |
799 |
- av_dlog(NULL, "IndexStartPosition %"PRId64"\n", segment->index_start_position); |
|
799 |
+ av_log(NULL, AV_LOG_TRACE, "IndexStartPosition %"PRId64"\n", segment->index_start_position); |
|
800 | 800 |
break; |
801 | 801 |
case 0x3F0D: |
802 | 802 |
segment->index_duration = avio_rb64(pb); |
803 |
- av_dlog(NULL, "IndexDuration %"PRId64"\n", segment->index_duration); |
|
803 |
+ av_log(NULL, AV_LOG_TRACE, "IndexDuration %"PRId64"\n", segment->index_duration); |
|
804 | 804 |
break; |
805 | 805 |
} |
806 | 806 |
return 0; |
... | ... |
@@ -814,7 +814,7 @@ static void mxf_read_pixel_layout(AVIOContext *pb, MXFDescriptor *descriptor) |
814 | 814 |
do { |
815 | 815 |
code = avio_r8(pb); |
816 | 816 |
value = avio_r8(pb); |
817 |
- av_dlog(NULL, "pixel layout: code %#x\n", code); |
|
817 |
+ av_log(NULL, AV_LOG_TRACE, "pixel layout: code %#x\n", code); |
|
818 | 818 |
|
819 | 819 |
if (ofs <= 14) { |
820 | 820 |
layout[ofs++] = code; |
... | ... |
@@ -1369,7 +1369,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) |
1369 | 1369 |
MXFPackage *temp_package = NULL; |
1370 | 1370 |
int i, j, k, ret; |
1371 | 1371 |
|
1372 |
- av_dlog(mxf->fc, "metadata sets count %d\n", mxf->metadata_sets_count); |
|
1372 |
+ av_log(mxf->fc, AV_LOG_TRACE, "metadata sets count %d\n", mxf->metadata_sets_count); |
|
1373 | 1373 |
/* TODO: handle multiple material packages (OP3x) */ |
1374 | 1374 |
for (i = 0; i < mxf->packages_count; i++) { |
1375 | 1375 |
material_package = mxf_resolve_strong_ref(mxf, &mxf->packages_refs[i], MaterialPackage); |
... | ... |
@@ -1420,7 +1420,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) |
1420 | 1420 |
} |
1421 | 1421 |
} |
1422 | 1422 |
if (!source_package) { |
1423 |
- av_dlog(mxf->fc, "material track %d: no corresponding source package found\n", material_track->track_id); |
|
1423 |
+ av_log(mxf->fc, AV_LOG_TRACE, "material track %d: no corresponding source package found\n", material_track->track_id); |
|
1424 | 1424 |
break; |
1425 | 1425 |
} |
1426 | 1426 |
for (k = 0; k < source_package->tracks_count; k++) { |
... | ... |
@@ -1849,7 +1849,7 @@ static int mxf_read_local_tags(MXFContext *mxf, KLVPacket *klv, MXFMetadataReadF |
1849 | 1849 |
uint64_t next = avio_tell(pb) + size; |
1850 | 1850 |
UID uid = {0}; |
1851 | 1851 |
|
1852 |
- av_dlog(mxf->fc, "local tag %#04x size %d\n", tag, size); |
|
1852 |
+ av_log(mxf->fc, AV_LOG_TRACE, "local tag %#04x size %d\n", tag, size); |
|
1853 | 1853 |
if (!size) { /* ignore empty tag, needed for some files with empty UMID tag */ |
1854 | 1854 |
av_log(mxf->fc, AV_LOG_ERROR, "local tag %#04x with 0 size\n", tag); |
1855 | 1855 |
continue; |
... | ... |
@@ -1860,7 +1860,7 @@ static int mxf_read_local_tags(MXFContext *mxf, KLVPacket *klv, MXFMetadataReadF |
1860 | 1860 |
int local_tag = AV_RB16(mxf->local_tags+i*18); |
1861 | 1861 |
if (local_tag == tag) { |
1862 | 1862 |
memcpy(uid, mxf->local_tags+i*18+2, 16); |
1863 |
- av_dlog(mxf->fc, "local tag %#04x\n", local_tag); |
|
1863 |
+ av_log(mxf->fc, AV_LOG_TRACE, "local tag %#04x\n", local_tag); |
|
1864 | 1864 |
PRINT_KEY(mxf->fc, "uid", uid); |
1865 | 1865 |
} |
1866 | 1866 |
} |
... | ... |
@@ -1903,7 +1903,7 @@ static int mxf_seek_to_previous_partition(MXFContext *mxf) |
1903 | 1903 |
avio_seek(pb, mxf->run_in + mxf->current_partition->previous_partition, SEEK_SET); |
1904 | 1904 |
mxf->current_partition = NULL; |
1905 | 1905 |
|
1906 |
- av_dlog(mxf->fc, "seeking to previous partition\n"); |
|
1906 |
+ av_log(mxf->fc, AV_LOG_TRACE, "seeking to previous partition\n"); |
|
1907 | 1907 |
|
1908 | 1908 |
return 1; |
1909 | 1909 |
} |
... | ... |
@@ -1924,11 +1924,11 @@ static int mxf_parse_handle_essence(MXFContext *mxf) |
1924 | 1924 |
: mxf->last_partition; |
1925 | 1925 |
|
1926 | 1926 |
if (!offset) { |
1927 |
- av_dlog(mxf->fc, "no last partition\n"); |
|
1927 |
+ av_log(mxf->fc, AV_LOG_TRACE, "no last partition\n"); |
|
1928 | 1928 |
return 0; |
1929 | 1929 |
} |
1930 | 1930 |
|
1931 |
- av_dlog(mxf->fc, "seeking to last partition\n"); |
|
1931 |
+ av_log(mxf->fc, AV_LOG_TRACE, "seeking to last partition\n"); |
|
1932 | 1932 |
|
1933 | 1933 |
/* remember where we were so we don't end up seeking further back than this */ |
1934 | 1934 |
mxf->last_forward_tell = avio_tell(pb); |
... | ... |
@@ -2134,7 +2134,7 @@ static int mxf_read_header(AVFormatContext *s) |
2134 | 2134 |
} |
2135 | 2135 |
|
2136 | 2136 |
PRINT_KEY(s, "read header", klv.key); |
2137 |
- av_dlog(s, "size %"PRIu64" offset %#"PRIx64"\n", klv.length, klv.offset); |
|
2137 |
+ av_log(s, AV_LOG_TRACE, "size %"PRIu64" offset %#"PRIx64"\n", klv.length, klv.offset); |
|
2138 | 2138 |
if (IS_KLV_KEY(klv.key, mxf_encrypted_triplet_key) || |
2139 | 2139 |
IS_KLV_KEY(klv.key, mxf_essence_element_key) || |
2140 | 2140 |
IS_KLV_KEY(klv.key, mxf_avid_essence_element_key) || |
... | ... |
@@ -2343,7 +2343,7 @@ static int mxf_read_packet_old(AVFormatContext *s, AVPacket *pkt) |
2343 | 2343 |
if ((ret = klv_read_packet(&klv, s->pb)) < 0) |
2344 | 2344 |
return ret; |
2345 | 2345 |
PRINT_KEY(s, "read packet", klv.key); |
2346 |
- av_dlog(s, "size %"PRIu64" offset %#"PRIx64"\n", klv.length, klv.offset); |
|
2346 |
+ av_log(s, AV_LOG_TRACE, "size %"PRIu64" offset %#"PRIx64"\n", klv.length, klv.offset); |
|
2347 | 2347 |
if (IS_KLV_KEY(klv.key, mxf_encrypted_triplet_key)) { |
2348 | 2348 |
ret = mxf_decrypt_triplet(s, pkt, &klv); |
2349 | 2349 |
if (ret < 0) { |
... | ... |
@@ -1870,7 +1870,7 @@ static int mxf_interleave_get_packet(AVFormatContext *s, AVPacket *out, AVPacket |
1870 | 1870 |
} |
1871 | 1871 |
|
1872 | 1872 |
*out = pktl->pkt; |
1873 |
- av_dlog(s, "out st:%d dts:%"PRId64"\n", (*out).stream_index, (*out).dts); |
|
1873 |
+ av_log(s, AV_LOG_TRACE, "out st:%d dts:%"PRId64"\n", (*out).stream_index, (*out).dts); |
|
1874 | 1874 |
s->internal->packet_buffer = pktl->next; |
1875 | 1875 |
if(s->streams[pktl->pkt.stream_index]->last_in_packet_buffer == pktl) |
1876 | 1876 |
s->streams[pktl->pkt.stream_index]->last_in_packet_buffer= NULL; |
... | ... |
@@ -214,7 +214,7 @@ static const AVCodecTag nsv_codec_audio_tags[] = { |
214 | 214 |
static int nsv_read_chunk(AVFormatContext *s, int fill_header); |
215 | 215 |
|
216 | 216 |
#define print_tag(str, tag, size) \ |
217 |
- av_dlog(NULL, "%s: tag=%c%c%c%c\n", \ |
|
217 |
+ av_log(NULL, AV_LOG_TRACE, "%s: tag=%c%c%c%c\n", \ |
|
218 | 218 |
str, tag & 0xff, \ |
219 | 219 |
(tag >> 8) & 0xff, \ |
220 | 220 |
(tag >> 16) & 0xff, \ |
... | ... |
@@ -228,41 +228,41 @@ static int nsv_resync(AVFormatContext *s) |
228 | 228 |
uint32_t v = 0; |
229 | 229 |
int i; |
230 | 230 |
|
231 |
- av_dlog(s, "%s(), offset = %"PRId64", state = %d\n", __FUNCTION__, avio_tell(pb), nsv->state); |
|
231 |
+ av_log(s, AV_LOG_TRACE, "%s(), offset = %"PRId64", state = %d\n", __FUNCTION__, avio_tell(pb), nsv->state); |
|
232 | 232 |
|
233 | 233 |
//nsv->state = NSV_UNSYNC; |
234 | 234 |
|
235 | 235 |
for (i = 0; i < NSV_MAX_RESYNC; i++) { |
236 | 236 |
if (pb->eof_reached) { |
237 |
- av_dlog(s, "NSV EOF\n"); |
|
237 |
+ av_log(s, AV_LOG_TRACE, "NSV EOF\n"); |
|
238 | 238 |
nsv->state = NSV_UNSYNC; |
239 | 239 |
return -1; |
240 | 240 |
} |
241 | 241 |
v <<= 8; |
242 | 242 |
v |= avio_r8(pb); |
243 | 243 |
if (i < 8) { |
244 |
- av_dlog(s, "NSV resync: [%d] = %02x\n", i, v & 0x0FF); |
|
244 |
+ av_log(s, AV_LOG_TRACE, "NSV resync: [%d] = %02x\n", i, v & 0x0FF); |
|
245 | 245 |
} |
246 | 246 |
|
247 | 247 |
if ((v & 0x0000ffff) == 0xefbe) { /* BEEF */ |
248 |
- av_dlog(s, "NSV resynced on BEEF after %d bytes\n", i+1); |
|
248 |
+ av_log(s, AV_LOG_TRACE, "NSV resynced on BEEF after %d bytes\n", i+1); |
|
249 | 249 |
nsv->state = NSV_FOUND_BEEF; |
250 | 250 |
return 0; |
251 | 251 |
} |
252 | 252 |
/* we read as big-endian, thus the MK*BE* */ |
253 | 253 |
if (v == TB_NSVF) { /* NSVf */ |
254 |
- av_dlog(s, "NSV resynced on NSVf after %d bytes\n", i+1); |
|
254 |
+ av_log(s, AV_LOG_TRACE, "NSV resynced on NSVf after %d bytes\n", i+1); |
|
255 | 255 |
nsv->state = NSV_FOUND_NSVF; |
256 | 256 |
return 0; |
257 | 257 |
} |
258 | 258 |
if (v == MKBETAG('N', 'S', 'V', 's')) { /* NSVs */ |
259 |
- av_dlog(s, "NSV resynced on NSVs after %d bytes\n", i+1); |
|
259 |
+ av_log(s, AV_LOG_TRACE, "NSV resynced on NSVs after %d bytes\n", i+1); |
|
260 | 260 |
nsv->state = NSV_FOUND_NSVS; |
261 | 261 |
return 0; |
262 | 262 |
} |
263 | 263 |
|
264 | 264 |
} |
265 |
- av_dlog(s, "NSV sync lost\n"); |
|
265 |
+ av_log(s, AV_LOG_TRACE, "NSV sync lost\n"); |
|
266 | 266 |
return -1; |
267 | 267 |
} |
268 | 268 |
|
... | ... |
@@ -277,7 +277,7 @@ static int nsv_parse_NSVf_header(AVFormatContext *s) |
277 | 277 |
int table_entries; |
278 | 278 |
int table_entries_used; |
279 | 279 |
|
280 |
- av_dlog(s, "%s()\n", __FUNCTION__); |
|
280 |
+ av_log(s, AV_LOG_TRACE, "%s()\n", __FUNCTION__); |
|
281 | 281 |
|
282 | 282 |
nsv->state = NSV_UNSYNC; /* in case we fail */ |
283 | 283 |
|
... | ... |
@@ -288,22 +288,22 @@ static int nsv_parse_NSVf_header(AVFormatContext *s) |
288 | 288 |
|
289 | 289 |
//s->file_size = (uint32_t)avio_rl32(pb); |
290 | 290 |
file_size = (uint32_t)avio_rl32(pb); |
291 |
- av_dlog(s, "NSV NSVf chunk_size %u\n", size); |
|
292 |
- av_dlog(s, "NSV NSVf file_size %u\n", file_size); |
|
291 |
+ av_log(s, AV_LOG_TRACE, "NSV NSVf chunk_size %u\n", size); |
|
292 |
+ av_log(s, AV_LOG_TRACE, "NSV NSVf file_size %u\n", file_size); |
|
293 | 293 |
|
294 | 294 |
nsv->duration = duration = avio_rl32(pb); /* in ms */ |
295 |
- av_dlog(s, "NSV NSVf duration %"PRId64" ms\n", duration); |
|
295 |
+ av_log(s, AV_LOG_TRACE, "NSV NSVf duration %"PRId64" ms\n", duration); |
|
296 | 296 |
// XXX: store it in AVStreams |
297 | 297 |
|
298 | 298 |
strings_size = avio_rl32(pb); |
299 | 299 |
table_entries = avio_rl32(pb); |
300 | 300 |
table_entries_used = avio_rl32(pb); |
301 |
- av_dlog(s, "NSV NSVf info-strings size: %d, table entries: %d, bis %d\n", |
|
301 |
+ av_log(s, AV_LOG_TRACE, "NSV NSVf info-strings size: %d, table entries: %d, bis %d\n", |
|
302 | 302 |
strings_size, table_entries, table_entries_used); |
303 | 303 |
if (pb->eof_reached) |
304 | 304 |
return -1; |
305 | 305 |
|
306 |
- av_dlog(s, "NSV got header; filepos %"PRId64"\n", avio_tell(pb)); |
|
306 |
+ av_log(s, AV_LOG_TRACE, "NSV got header; filepos %"PRId64"\n", avio_tell(pb)); |
|
307 | 307 |
|
308 | 308 |
if (strings_size > 0) { |
309 | 309 |
char *strings; /* last byte will be '\0' to play safe with str*() */ |
... | ... |
@@ -332,7 +332,7 @@ static int nsv_parse_NSVf_header(AVFormatContext *s) |
332 | 332 |
if (!p || p >= endp) |
333 | 333 |
break; |
334 | 334 |
*p++ = '\0'; |
335 |
- av_dlog(s, "NSV NSVf INFO: %s='%s'\n", token, value); |
|
335 |
+ av_log(s, AV_LOG_TRACE, "NSV NSVf INFO: %s='%s'\n", token, value); |
|
336 | 336 |
av_dict_set(&s->metadata, token, value, 0); |
337 | 337 |
} |
338 | 338 |
av_free(strings); |
... | ... |
@@ -340,7 +340,7 @@ static int nsv_parse_NSVf_header(AVFormatContext *s) |
340 | 340 |
if (pb->eof_reached) |
341 | 341 |
return -1; |
342 | 342 |
|
343 |
- av_dlog(s, "NSV got infos; filepos %"PRId64"\n", avio_tell(pb)); |
|
343 |
+ av_log(s, AV_LOG_TRACE, "NSV got infos; filepos %"PRId64"\n", avio_tell(pb)); |
|
344 | 344 |
|
345 | 345 |
if (table_entries_used > 0) { |
346 | 346 |
int i; |
... | ... |
@@ -365,7 +365,7 @@ static int nsv_parse_NSVf_header(AVFormatContext *s) |
365 | 365 |
} |
366 | 366 |
} |
367 | 367 |
|
368 |
- av_dlog(s, "NSV got index; filepos %"PRId64"\n", avio_tell(pb)); |
|
368 |
+ av_log(s, AV_LOG_TRACE, "NSV got index; filepos %"PRId64"\n", avio_tell(pb)); |
|
369 | 369 |
|
370 | 370 |
avio_seek(pb, nsv->base_offset + size, SEEK_SET); /* required for dumbdriving-271.nsv (2 extra bytes) */ |
371 | 371 |
|
... | ... |
@@ -385,7 +385,7 @@ static int nsv_parse_NSVs_header(AVFormatContext *s) |
385 | 385 |
int i; |
386 | 386 |
AVStream *st; |
387 | 387 |
NSVStream *nst; |
388 |
- av_dlog(s, "%s()\n", __FUNCTION__); |
|
388 |
+ av_log(s, AV_LOG_TRACE, "%s()\n", __FUNCTION__); |
|
389 | 389 |
|
390 | 390 |
vtag = avio_rl32(pb); |
391 | 391 |
atag = avio_rl32(pb); |
... | ... |
@@ -393,7 +393,7 @@ static int nsv_parse_NSVs_header(AVFormatContext *s) |
393 | 393 |
vheight = avio_rl16(pb); |
394 | 394 |
i = avio_r8(pb); |
395 | 395 |
|
396 |
- av_dlog(s, "NSV NSVs framerate code %2x\n", i); |
|
396 |
+ av_log(s, AV_LOG_TRACE, "NSV NSVs framerate code %2x\n", i); |
|
397 | 397 |
if(i&0x80) { /* odd way of giving native framerates from docs */ |
398 | 398 |
int t=(i & 0x7F)>>2; |
399 | 399 |
if(t<16) framerate = (AVRational){1, t+1}; |
... | ... |
@@ -416,7 +416,7 @@ static int nsv_parse_NSVs_header(AVFormatContext *s) |
416 | 416 |
|
417 | 417 |
print_tag("NSV NSVs vtag", vtag, 0); |
418 | 418 |
print_tag("NSV NSVs atag", atag, 0); |
419 |
- av_dlog(s, "NSV NSVs vsize %dx%d\n", vwidth, vheight); |
|
419 |
+ av_log(s, AV_LOG_TRACE, "NSV NSVs vsize %dx%d\n", vwidth, vheight); |
|
420 | 420 |
|
421 | 421 |
/* XXX change to ap != NULL ? */ |
422 | 422 |
if (s->nb_streams == 0) { /* streams not yet published, let's do that */ |
... | ... |
@@ -479,7 +479,7 @@ static int nsv_parse_NSVs_header(AVFormatContext *s) |
479 | 479 |
} |
480 | 480 |
} else { |
481 | 481 |
if (nsv->vtag != vtag || nsv->atag != atag || nsv->vwidth != vwidth || nsv->vheight != vwidth) { |
482 |
- av_dlog(s, "NSV NSVs header values differ from the first one!!!\n"); |
|
482 |
+ av_log(s, AV_LOG_TRACE, "NSV NSVs header values differ from the first one!!!\n"); |
|
483 | 483 |
//return -1; |
484 | 484 |
} |
485 | 485 |
} |
... | ... |
@@ -497,8 +497,8 @@ static int nsv_read_header(AVFormatContext *s) |
497 | 497 |
NSVContext *nsv = s->priv_data; |
498 | 498 |
int i, err; |
499 | 499 |
|
500 |
- av_dlog(s, "%s()\n", __FUNCTION__); |
|
501 |
- av_dlog(s, "filename '%s'\n", s->filename); |
|
500 |
+ av_log(s, AV_LOG_TRACE, "%s()\n", __FUNCTION__); |
|
501 |
+ av_log(s, AV_LOG_TRACE, "filename '%s'\n", s->filename); |
|
502 | 502 |
|
503 | 503 |
nsv->state = NSV_UNSYNC; |
504 | 504 |
nsv->ahead[0].data = nsv->ahead[1].data = NULL; |
... | ... |
@@ -524,7 +524,7 @@ static int nsv_read_header(AVFormatContext *s) |
524 | 524 |
/* now read the first chunk, so we can attempt to decode more info */ |
525 | 525 |
err = nsv_read_chunk(s, 1); |
526 | 526 |
|
527 |
- av_dlog(s, "parsed header\n"); |
|
527 |
+ av_log(s, AV_LOG_TRACE, "parsed header\n"); |
|
528 | 528 |
return err; |
529 | 529 |
} |
530 | 530 |
|
... | ... |
@@ -541,7 +541,7 @@ static int nsv_read_chunk(AVFormatContext *s, int fill_header) |
541 | 541 |
uint16_t asize; |
542 | 542 |
uint16_t auxsize; |
543 | 543 |
|
544 |
- av_dlog(s, "%s(%d)\n", __FUNCTION__, fill_header); |
|
544 |
+ av_log(s, AV_LOG_TRACE, "%s(%d)\n", __FUNCTION__, fill_header); |
|
545 | 545 |
|
546 | 546 |
if (nsv->ahead[0].data || nsv->ahead[1].data) |
547 | 547 |
return 0; //-1; /* hey! eat what you've in your plate first! */ |
... | ... |
@@ -566,13 +566,13 @@ null_chunk_retry: |
566 | 566 |
asize = avio_rl16(pb); |
567 | 567 |
vsize = (vsize << 4) | (auxcount >> 4); |
568 | 568 |
auxcount &= 0x0f; |
569 |
- av_dlog(s, "NSV CHUNK %d aux, %u bytes video, %d bytes audio\n", auxcount, vsize, asize); |
|
569 |
+ av_log(s, AV_LOG_TRACE, "NSV CHUNK %d aux, %u bytes video, %d bytes audio\n", auxcount, vsize, asize); |
|
570 | 570 |
/* skip aux stuff */ |
571 | 571 |
for (i = 0; i < auxcount; i++) { |
572 | 572 |
uint32_t av_unused auxtag; |
573 | 573 |
auxsize = avio_rl16(pb); |
574 | 574 |
auxtag = avio_rl32(pb); |
575 |
- av_dlog(s, "NSV aux data: '%c%c%c%c', %d bytes\n", |
|
575 |
+ av_log(s, AV_LOG_TRACE, "NSV aux data: '%c%c%c%c', %d bytes\n", |
|
576 | 576 |
(auxtag & 0x0ff), |
577 | 577 |
((auxtag >> 8) & 0x0ff), |
578 | 578 |
((auxtag >> 16) & 0x0ff), |
... | ... |
@@ -603,7 +603,7 @@ null_chunk_retry: |
603 | 603 |
pkt->dts = nst->frame_offset; |
604 | 604 |
pkt->flags |= nsv->state == NSV_HAS_READ_NSVS ? AV_PKT_FLAG_KEY : 0; /* keyframe only likely on a sync frame */ |
605 | 605 |
for (i = 0; i < FFMIN(8, vsize); i++) |
606 |
- av_dlog(s, "NSV video: [%d] = %02x\n", i, pkt->data[i]); |
|
606 |
+ av_log(s, AV_LOG_TRACE, "NSV video: [%d] = %02x\n", i, pkt->data[i]); |
|
607 | 607 |
} |
608 | 608 |
if(st[NSV_ST_VIDEO]) |
609 | 609 |
((NSVStream*)st[NSV_ST_VIDEO]->priv_data)->frame_offset++; |
... | ... |
@@ -623,11 +623,11 @@ null_chunk_retry: |
623 | 623 |
if (!channels || !samplerate) |
624 | 624 |
return AVERROR_INVALIDDATA; |
625 | 625 |
asize-=4; |
626 |
- av_dlog(s, "NSV RAWAUDIO: bps %d, nchan %d, srate %d\n", bps, channels, samplerate); |
|
626 |
+ av_log(s, AV_LOG_TRACE, "NSV RAWAUDIO: bps %d, nchan %d, srate %d\n", bps, channels, samplerate); |
|
627 | 627 |
if (fill_header) { |
628 | 628 |
st[NSV_ST_AUDIO]->need_parsing = AVSTREAM_PARSE_NONE; /* we know everything */ |
629 | 629 |
if (bps != 16) { |
630 |
- av_dlog(s, "NSV AUDIO bit/sample != 16 (%d)!!!\n", bps); |
|
630 |
+ av_log(s, AV_LOG_TRACE, "NSV AUDIO bit/sample != 16 (%d)!!!\n", bps); |
|
631 | 631 |
} |
632 | 632 |
bps /= channels; // ??? |
633 | 633 |
if (bps == 8) |
... | ... |
@@ -636,7 +636,7 @@ null_chunk_retry: |
636 | 636 |
channels = 1; |
637 | 637 |
st[NSV_ST_AUDIO]->codec->channels = channels; |
638 | 638 |
st[NSV_ST_AUDIO]->codec->sample_rate = samplerate; |
639 |
- av_dlog(s, "NSV RAWAUDIO: bps %d, nchan %d, srate %d\n", bps, channels, samplerate); |
|
639 |
+ av_log(s, AV_LOG_TRACE, "NSV RAWAUDIO: bps %d, nchan %d, srate %d\n", bps, channels, samplerate); |
|
640 | 640 |
} |
641 | 641 |
} |
642 | 642 |
av_get_packet(pb, pkt, asize); |
... | ... |
@@ -647,7 +647,7 @@ null_chunk_retry: |
647 | 647 |
pkt->dts = (((NSVStream*)st[NSV_ST_VIDEO]->priv_data)->frame_offset-1); |
648 | 648 |
pkt->dts *= (int64_t)1000 * nsv->framerate.den; |
649 | 649 |
pkt->dts += (int64_t)nsv->avsync * nsv->framerate.num; |
650 |
- av_dlog(s, "NSV AUDIO: sync:%d, dts:%"PRId64, nsv->avsync, pkt->dts); |
|
650 |
+ av_log(s, AV_LOG_TRACE, "NSV AUDIO: sync:%d, dts:%"PRId64, nsv->avsync, pkt->dts); |
|
651 | 651 |
} |
652 | 652 |
nst->frame_offset++; |
653 | 653 |
} |
... | ... |
@@ -662,7 +662,7 @@ static int nsv_read_packet(AVFormatContext *s, AVPacket *pkt) |
662 | 662 |
NSVContext *nsv = s->priv_data; |
663 | 663 |
int i, err = 0; |
664 | 664 |
|
665 |
- av_dlog(s, "%s()\n", __FUNCTION__); |
|
665 |
+ av_log(s, AV_LOG_TRACE, "%s()\n", __FUNCTION__); |
|
666 | 666 |
|
667 | 667 |
/* in case we don't already have something to eat ... */ |
668 | 668 |
if (!nsv->ahead[0].data && !nsv->ahead[1].data) |
... | ... |
@@ -673,7 +673,7 @@ static int nsv_read_packet(AVFormatContext *s, AVPacket *pkt) |
673 | 673 |
/* now pick one of the plates */ |
674 | 674 |
for (i = 0; i < 2; i++) { |
675 | 675 |
if (nsv->ahead[i].data) { |
676 |
- av_dlog(s, "%s: using cached packet[%d]\n", __FUNCTION__, i); |
|
676 |
+ av_log(s, AV_LOG_TRACE, "%s: using cached packet[%d]\n", __FUNCTION__, i); |
|
677 | 677 |
/* avoid the cost of new_packet + memcpy(->data) */ |
678 | 678 |
memcpy(pkt, &nsv->ahead[i], sizeof(AVPacket)); |
679 | 679 |
nsv->ahead[i].data = NULL; /* we ate that one */ |
... | ... |
@@ -723,7 +723,7 @@ static int nsv_probe(AVProbeData *p) |
723 | 723 |
int score; |
724 | 724 |
int vsize, asize, auxcount; |
725 | 725 |
score = 0; |
726 |
- av_dlog(NULL, "nsv_probe(), buf_size %d\n", p->buf_size); |
|
726 |
+ av_log(NULL, AV_LOG_TRACE, "nsv_probe(), buf_size %d\n", p->buf_size); |
|
727 | 727 |
/* check file header */ |
728 | 728 |
/* streamed files might not have any header */ |
729 | 729 |
if (p->buf[0] == 'N' && p->buf[1] == 'S' && |
... | ... |
@@ -344,7 +344,7 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize, |
344 | 344 |
int complete = 0; |
345 | 345 |
int segp = 0, psize = 0; |
346 | 346 |
|
347 |
- av_dlog(s, "ogg_packet: curidx=%i\n", ogg->curidx); |
|
347 |
+ av_log(s, AV_LOG_TRACE, "ogg_packet: curidx=%i\n", ogg->curidx); |
|
348 | 348 |
|
349 | 349 |
do { |
350 | 350 |
idx = ogg->curidx; |
... | ... |
@@ -357,7 +357,7 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize, |
357 | 357 |
|
358 | 358 |
os = ogg->streams + idx; |
359 | 359 |
|
360 |
- av_dlog(s, "ogg_packet: idx=%d pstart=%d psize=%d segp=%d nsegs=%d\n", |
|
360 |
+ av_log(s, AV_LOG_TRACE, "ogg_packet: idx=%d pstart=%d psize=%d segp=%d nsegs=%d\n", |
|
361 | 361 |
idx, os->pstart, os->psize, os->segp, os->nsegs); |
362 | 362 |
|
363 | 363 |
if (!os->codec) { |
... | ... |
@@ -395,7 +395,7 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize, |
395 | 395 |
} |
396 | 396 |
} while (!complete); |
397 | 397 |
|
398 |
- av_dlog(s, "ogg_packet: idx %i, frame size %i, start %i\n", |
|
398 |
+ av_log(s, AV_LOG_TRACE, "ogg_packet: idx %i, frame size %i, start %i\n", |
|
399 | 399 |
idx, os->psize, os->pstart); |
400 | 400 |
|
401 | 401 |
if (os->granule == -1) |
... | ... |
@@ -495,7 +495,7 @@ static int ogg_get_headers(AVFormatContext *s) |
495 | 495 |
os->lastpts = s->streams[i]->start_time = |
496 | 496 |
ogg_gptopts(s, i, os->start_granule, NULL); |
497 | 497 |
} |
498 |
- av_dlog(s, "found headers\n"); |
|
498 |
+ av_log(s, AV_LOG_TRACE, "found headers\n"); |
|
499 | 499 |
|
500 | 500 |
return 0; |
501 | 501 |
} |
... | ... |
@@ -44,7 +44,7 @@ static int read_atom(AVFormatContext *s, Atom *atom) |
44 | 44 |
if (atom->size < 8) |
45 | 45 |
return -1; |
46 | 46 |
atom->tag = avio_rl32(s->pb); |
47 |
- av_dlog(s, "atom %u %.4s offset %#"PRIx64"\n", |
|
47 |
+ av_log(s, AV_LOG_TRACE, "atom %u %.4s offset %#"PRIx64"\n", |
|
48 | 48 |
atom->size, (char*)&atom->tag, atom->offset); |
49 | 49 |
return atom->size; |
50 | 50 |
} |
... | ... |
@@ -64,16 +64,16 @@ static int r3d_read_red1(AVFormatContext *s) |
64 | 64 |
|
65 | 65 |
tmp = avio_r8(s->pb); // major version |
66 | 66 |
tmp2 = avio_r8(s->pb); // minor version |
67 |
- av_dlog(s, "version %d.%d\n", tmp, tmp2); |
|
67 |
+ av_log(s, AV_LOG_TRACE, "version %d.%d\n", tmp, tmp2); |
|
68 | 68 |
|
69 | 69 |
tmp = avio_rb16(s->pb); // unknown |
70 |
- av_dlog(s, "unknown1 %d\n", tmp); |
|
70 |
+ av_log(s, AV_LOG_TRACE, "unknown1 %d\n", tmp); |
|
71 | 71 |
|
72 | 72 |
tmp = avio_rb32(s->pb); |
73 | 73 |
avpriv_set_pts_info(st, 32, 1, tmp); |
74 | 74 |
|
75 | 75 |
tmp = avio_rb32(s->pb); // filenum |
76 |
- av_dlog(s, "filenum %d\n", tmp); |
|
76 |
+ av_log(s, AV_LOG_TRACE, "filenum %d\n", tmp); |
|
77 | 77 |
|
78 | 78 |
avio_skip(s->pb, 32); // unknown |
79 | 79 |
|
... | ... |
@@ -81,7 +81,7 @@ static int r3d_read_red1(AVFormatContext *s) |
81 | 81 |
st->codec->height = avio_rb32(s->pb); |
82 | 82 |
|
83 | 83 |
tmp = avio_rb16(s->pb); // unknown |
84 |
- av_dlog(s, "unknown2 %d\n", tmp); |
|
84 |
+ av_log(s, AV_LOG_TRACE, "unknown2 %d\n", tmp); |
|
85 | 85 |
|
86 | 86 |
framerate.num = avio_rb16(s->pb); |
87 | 87 |
framerate.den = avio_rb16(s->pb); |
... | ... |
@@ -90,7 +90,7 @@ static int r3d_read_red1(AVFormatContext *s) |
90 | 90 |
} |
91 | 91 |
|
92 | 92 |
tmp = avio_r8(s->pb); // audio channels |
93 |
- av_dlog(s, "audio channels %d\n", tmp); |
|
93 |
+ av_log(s, AV_LOG_TRACE, "audio channels %d\n", tmp); |
|
94 | 94 |
if (tmp > 0) { |
95 | 95 |
AVStream *ast = avformat_new_stream(s, NULL); |
96 | 96 |
if (!ast) |
... | ... |
@@ -105,10 +105,10 @@ static int r3d_read_red1(AVFormatContext *s) |
105 | 105 |
filename[sizeof(filename)-1] = 0; |
106 | 106 |
av_dict_set(&st->metadata, "filename", filename, 0); |
107 | 107 |
|
108 |
- av_dlog(s, "filename %s\n", filename); |
|
109 |
- av_dlog(s, "resolution %dx%d\n", st->codec->width, st->codec->height); |
|
110 |
- av_dlog(s, "timescale %d\n", st->time_base.den); |
|
111 |
- av_dlog(s, "frame rate %d/%d\n", |
|
108 |
+ av_log(s, AV_LOG_TRACE, "filename %s\n", filename); |
|
109 |
+ av_log(s, AV_LOG_TRACE, "resolution %dx%d\n", st->codec->width, st->codec->height); |
|
110 |
+ av_log(s, AV_LOG_TRACE, "timescale %d\n", st->time_base.den); |
|
111 |
+ av_log(s, AV_LOG_TRACE, "frame rate %d/%d\n", |
|
112 | 112 |
framerate.num, framerate.den); |
113 | 113 |
|
114 | 114 |
return 0; |
... | ... |
@@ -131,7 +131,7 @@ static int r3d_read_rdvo(AVFormatContext *s, Atom *atom) |
131 | 131 |
r3d->video_offsets_count = i; |
132 | 132 |
break; |
133 | 133 |
} |
134 |
- av_dlog(s, "video offset %d: %#x\n", i, r3d->video_offsets[i]); |
|
134 |
+ av_log(s, AV_LOG_TRACE, "video offset %d: %#x\n", i, r3d->video_offsets[i]); |
|
135 | 135 |
} |
136 | 136 |
|
137 | 137 |
if (st->avg_frame_rate.num) |
... | ... |
@@ -139,7 +139,7 @@ static int r3d_read_rdvo(AVFormatContext *s, Atom *atom) |
139 | 139 |
(AVRational){st->avg_frame_rate.den, |
140 | 140 |
st->avg_frame_rate.num}, |
141 | 141 |
st->time_base); |
142 |
- av_dlog(s, "duration %"PRId64"\n", st->duration); |
|
142 |
+ av_log(s, AV_LOG_TRACE, "duration %"PRId64"\n", st->duration); |
|
143 | 143 |
|
144 | 144 |
return 0; |
145 | 145 |
} |
... | ... |
@@ -155,10 +155,10 @@ static void r3d_read_reos(AVFormatContext *s) |
155 | 155 |
avio_rb32(s->pb); // rdas offset |
156 | 156 |
|
157 | 157 |
tmp = avio_rb32(s->pb); |
158 |
- av_dlog(s, "num video chunks %d\n", tmp); |
|
158 |
+ av_log(s, AV_LOG_TRACE, "num video chunks %d\n", tmp); |
|
159 | 159 |
|
160 | 160 |
tmp = avio_rb32(s->pb); |
161 |
- av_dlog(s, "num audio chunks %d\n", tmp); |
|
161 |
+ av_log(s, AV_LOG_TRACE, "num audio chunks %d\n", tmp); |
|
162 | 162 |
|
163 | 163 |
avio_skip(s->pb, 6*4); |
164 | 164 |
} |
... | ... |
@@ -184,7 +184,7 @@ static int r3d_read_header(AVFormatContext *s) |
184 | 184 |
} |
185 | 185 |
|
186 | 186 |
s->internal->data_offset = avio_tell(s->pb); |
187 |
- av_dlog(s, "data offset %#"PRIx64"\n", s->internal->data_offset); |
|
187 |
+ av_log(s, AV_LOG_TRACE, "data offset %#"PRIx64"\n", s->internal->data_offset); |
|
188 | 188 |
if (!s->pb->seekable) |
189 | 189 |
return 0; |
190 | 190 |
// find REOB/REOF/REOS to load index |
... | ... |
@@ -226,29 +226,29 @@ static int r3d_read_redv(AVFormatContext *s, AVPacket *pkt, Atom *atom) |
226 | 226 |
dts = avio_rb32(s->pb); |
227 | 227 |
|
228 | 228 |
tmp = avio_rb32(s->pb); |
229 |
- av_dlog(s, "frame num %d\n", tmp); |
|
229 |
+ av_log(s, AV_LOG_TRACE, "frame num %d\n", tmp); |
|
230 | 230 |
|
231 | 231 |
tmp = avio_r8(s->pb); // major version |
232 | 232 |
tmp2 = avio_r8(s->pb); // minor version |
233 |
- av_dlog(s, "version %d.%d\n", tmp, tmp2); |
|
233 |
+ av_log(s, AV_LOG_TRACE, "version %d.%d\n", tmp, tmp2); |
|
234 | 234 |
|
235 | 235 |
tmp = avio_rb16(s->pb); // unknown |
236 |
- av_dlog(s, "unknown %d\n", tmp); |
|
236 |
+ av_log(s, AV_LOG_TRACE, "unknown %d\n", tmp); |
|
237 | 237 |
|
238 | 238 |
if (tmp > 4) { |
239 | 239 |
tmp = avio_rb16(s->pb); // unknown |
240 |
- av_dlog(s, "unknown %d\n", tmp); |
|
240 |
+ av_log(s, AV_LOG_TRACE, "unknown %d\n", tmp); |
|
241 | 241 |
|
242 | 242 |
tmp = avio_rb16(s->pb); // unknown |
243 |
- av_dlog(s, "unknown %d\n", tmp); |
|
243 |
+ av_log(s, AV_LOG_TRACE, "unknown %d\n", tmp); |
|
244 | 244 |
|
245 | 245 |
tmp = avio_rb32(s->pb); |
246 |
- av_dlog(s, "width %d\n", tmp); |
|
246 |
+ av_log(s, AV_LOG_TRACE, "width %d\n", tmp); |
|
247 | 247 |
tmp = avio_rb32(s->pb); |
248 |
- av_dlog(s, "height %d\n", tmp); |
|
248 |
+ av_log(s, AV_LOG_TRACE, "height %d\n", tmp); |
|
249 | 249 |
|
250 | 250 |
tmp = avio_rb32(s->pb); |
251 |
- av_dlog(s, "metadata len %d\n", tmp); |
|
251 |
+ av_log(s, AV_LOG_TRACE, "metadata len %d\n", tmp); |
|
252 | 252 |
} |
253 | 253 |
tmp = atom->size - 8 - (avio_tell(s->pb) - pos); |
254 | 254 |
if (tmp < 0) |
... | ... |
@@ -264,7 +264,7 @@ static int r3d_read_redv(AVFormatContext *s, AVPacket *pkt, Atom *atom) |
264 | 264 |
if (st->avg_frame_rate.num) |
265 | 265 |
pkt->duration = (uint64_t)st->time_base.den* |
266 | 266 |
st->avg_frame_rate.den/st->avg_frame_rate.num; |
267 |
- av_dlog(s, "pkt dts %"PRId64" duration %d\n", pkt->dts, pkt->duration); |
|
267 |
+ av_log(s, AV_LOG_TRACE, "pkt dts %"PRId64" duration %d\n", pkt->dts, pkt->duration); |
|
268 | 268 |
|
269 | 269 |
return 0; |
270 | 270 |
} |
... | ... |
@@ -289,17 +289,17 @@ static int r3d_read_reda(AVFormatContext *s, AVPacket *pkt, Atom *atom) |
289 | 289 |
samples = avio_rb32(s->pb); |
290 | 290 |
|
291 | 291 |
tmp = avio_rb32(s->pb); |
292 |
- av_dlog(s, "packet num %d\n", tmp); |
|
292 |
+ av_log(s, AV_LOG_TRACE, "packet num %d\n", tmp); |
|
293 | 293 |
|
294 | 294 |
tmp = avio_rb16(s->pb); // unknown |
295 |
- av_dlog(s, "unknown %d\n", tmp); |
|
295 |
+ av_log(s, AV_LOG_TRACE, "unknown %d\n", tmp); |
|
296 | 296 |
|
297 | 297 |
tmp = avio_r8(s->pb); // major version |
298 | 298 |
tmp2 = avio_r8(s->pb); // minor version |
299 |
- av_dlog(s, "version %d.%d\n", tmp, tmp2); |
|
299 |
+ av_log(s, AV_LOG_TRACE, "version %d.%d\n", tmp, tmp2); |
|
300 | 300 |
|
301 | 301 |
tmp = avio_rb32(s->pb); // unknown |
302 |
- av_dlog(s, "unknown %d\n", tmp); |
|
302 |
+ av_log(s, AV_LOG_TRACE, "unknown %d\n", tmp); |
|
303 | 303 |
|
304 | 304 |
size = atom->size - 8 - (avio_tell(s->pb) - pos); |
305 | 305 |
if (size < 0) |
... | ... |
@@ -313,7 +313,7 @@ static int r3d_read_reda(AVFormatContext *s, AVPacket *pkt, Atom *atom) |
313 | 313 |
pkt->stream_index = 1; |
314 | 314 |
pkt->dts = dts; |
315 | 315 |
pkt->duration = av_rescale(samples, st->time_base.den, st->codec->sample_rate); |
316 |
- av_dlog(s, "pkt dts %"PRId64" duration %d samples %d sample rate %d\n", |
|
316 |
+ av_log(s, AV_LOG_TRACE, "pkt dts %"PRId64" duration %d samples %d sample rate %d\n", |
|
317 | 317 |
pkt->dts, pkt->duration, samples, st->codec->sample_rate); |
318 | 318 |
|
319 | 319 |
return 0; |
... | ... |
@@ -370,7 +370,7 @@ static int r3d_seek(AVFormatContext *s, int stream_index, int64_t sample_time, i |
370 | 370 |
|
371 | 371 |
frame_num = av_rescale_q(sample_time, st->time_base, |
372 | 372 |
(AVRational){st->avg_frame_rate.den, st->avg_frame_rate.num}); |
373 |
- av_dlog(s, "seek frame num %d timestamp %"PRId64"\n", |
|
373 |
+ av_log(s, AV_LOG_TRACE, "seek frame num %d timestamp %"PRId64"\n", |
|
374 | 374 |
frame_num, sample_time); |
375 | 375 |
|
376 | 376 |
if (frame_num < r3d->video_offsets_count) { |
... | ... |
@@ -319,7 +319,7 @@ int ff_rm_read_mdpr_codecdata(AVFormatContext *s, AVIOContext *pb, |
319 | 319 |
st->codec->codec_tag = avio_rl32(pb); |
320 | 320 |
st->codec->codec_id = ff_codec_get_id(ff_rm_codec_tags, |
321 | 321 |
st->codec->codec_tag); |
322 |
- av_dlog(s, "%X %X\n", st->codec->codec_tag, MKTAG('R', 'V', '2', '0')); |
|
322 |
+ av_log(s, AV_LOG_TRACE, "%X %X\n", st->codec->codec_tag, MKTAG('R', 'V', '2', '0')); |
|
323 | 323 |
if (st->codec->codec_id == AV_CODEC_ID_NONE) |
324 | 324 |
goto fail1; |
325 | 325 |
st->codec->width = avio_rb16(pb); |
... | ... |
@@ -452,7 +452,7 @@ static int rm_read_header(AVFormatContext *s) |
452 | 452 |
tag = avio_rl32(pb); |
453 | 453 |
tag_size = avio_rb32(pb); |
454 | 454 |
avio_rb16(pb); |
455 |
- av_dlog(s, "tag=%c%c%c%c (%08x) size=%d\n", |
|
455 |
+ av_log(s, AV_LOG_TRACE, "tag=%c%c%c%c (%08x) size=%d\n", |
|
456 | 456 |
(tag ) & 0xff, |
457 | 457 |
(tag >> 8) & 0xff, |
458 | 458 |
(tag >> 16) & 0xff, |
... | ... |
@@ -946,7 +946,7 @@ static int64_t rm_read_dts(AVFormatContext *s, int stream_index, |
946 | 946 |
} |
947 | 947 |
|
948 | 948 |
if((flags&2) && (seq&0x7F) == 1){ |
949 |
- av_dlog(s, "%d %d-%d %"PRId64" %d\n", |
|
949 |
+ av_log(s, AV_LOG_TRACE, "%d %d-%d %"PRId64" %d\n", |
|
950 | 950 |
flags, stream_index2, stream_index, dts, seq); |
951 | 951 |
av_add_index_entry(st, pos, dts, 0, 0, AVINDEX_KEYFRAME); |
952 | 952 |
if(stream_index2 == stream_index) |
... | ... |
@@ -2310,7 +2310,7 @@ static int rtmp_parse_result(URLContext *s, RTMPContext *rt, RTMPPacket *pkt) |
2310 | 2310 |
|
2311 | 2311 |
switch (pkt->type) { |
2312 | 2312 |
case RTMP_PT_BYTES_READ: |
2313 |
- av_dlog(s, "received bytes read report\n"); |
|
2313 |
+ av_log(s, AV_LOG_TRACE, "received bytes read report\n"); |
|
2314 | 2314 |
break; |
2315 | 2315 |
case RTMP_PT_CHUNK_SIZE: |
2316 | 2316 |
if ((ret = handle_chunk_size(s, pkt)) < 0) |
... | ... |
@@ -355,9 +355,9 @@ int ff_rtp_check_and_send_back_rr(RTPDemuxContext *s, URLContext *fd, |
355 | 355 |
len = avio_close_dyn_buf(pb, &buf); |
356 | 356 |
if ((len > 0) && buf) { |
357 | 357 |
int av_unused result; |
358 |
- av_dlog(s->ic, "sending %d bytes of RR\n", len); |
|
358 |
+ av_log(s->ic, AV_LOG_TRACE, "sending %d bytes of RR\n", len); |
|
359 | 359 |
result = ffurl_write(fd, buf, len); |
360 |
- av_dlog(s->ic, "result from ffurl_write: %d\n", result); |
|
360 |
+ av_log(s->ic, AV_LOG_TRACE, "result from ffurl_write: %d\n", result); |
|
361 | 361 |
av_free(buf); |
362 | 362 |
} |
363 | 363 |
return 0; |
... | ... |
@@ -52,7 +52,7 @@ static av_cold int hevc_sdp_parse_fmtp_config(AVFormatContext *s, |
52 | 52 |
/* profile-id: 0-31 */ |
53 | 53 |
if (!strcmp(attr, "profile-id")) { |
54 | 54 |
hevc_data->profile_id = atoi(value); |
55 |
- av_dlog(s, "SDP: found profile-id: %d\n", hevc_data->profile_id); |
|
55 |
+ av_log(s, AV_LOG_TRACE, "SDP: found profile-id: %d\n", hevc_data->profile_id); |
|
56 | 56 |
} |
57 | 57 |
|
58 | 58 |
/* tier-flag: 0-1 */ |
... | ... |
@@ -102,7 +102,7 @@ static av_cold int hevc_sdp_parse_fmtp_config(AVFormatContext *s, |
102 | 102 |
if (!strcmp(attr, "sprop-max-don-diff")) { |
103 | 103 |
if (atoi(value) > 0) |
104 | 104 |
hevc_data->using_donl_field = 1; |
105 |
- av_dlog(s, "Found sprop-max-don-diff in SDP, DON field usage is: %d\n", |
|
105 |
+ av_log(s, AV_LOG_TRACE, "Found sprop-max-don-diff in SDP, DON field usage is: %d\n", |
|
106 | 106 |
hevc_data->using_donl_field); |
107 | 107 |
} |
108 | 108 |
|
... | ... |
@@ -110,7 +110,7 @@ static av_cold int hevc_sdp_parse_fmtp_config(AVFormatContext *s, |
110 | 110 |
if (!strcmp(attr, "sprop-depack-buf-nalus")) { |
111 | 111 |
if (atoi(value) > 0) |
112 | 112 |
hevc_data->using_donl_field = 1; |
113 |
- av_dlog(s, "Found sprop-depack-buf-nalus in SDP, DON field usage is: %d\n", |
|
113 |
+ av_log(s, AV_LOG_TRACE, "Found sprop-depack-buf-nalus in SDP, DON field usage is: %d\n", |
|
114 | 114 |
hevc_data->using_donl_field); |
115 | 115 |
} |
116 | 116 |
|
... | ... |
@@ -305,7 +305,7 @@ static int hevc_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_hevc_ctx |
305 | 305 |
len -= RTP_HEVC_DONL_FIELD_SIZE; |
306 | 306 |
} |
307 | 307 |
|
308 |
- av_dlog(ctx, " FU type %d with %d bytes\n", fu_type, len); |
|
308 |
+ av_log(ctx, AV_LOG_TRACE, " FU type %d with %d bytes\n", fu_type, len); |
|
309 | 309 |
|
310 | 310 |
if (len <= 0) { |
311 | 311 |
/* sanity check for size of input packet: 1 byte payload at least */ |
... | ... |
@@ -259,7 +259,7 @@ static void rtcp_send_sr(AVFormatContext *s1, int64_t ntp_time, int bye) |
259 | 259 |
RTPMuxContext *s = s1->priv_data; |
260 | 260 |
uint32_t rtp_ts; |
261 | 261 |
|
262 |
- av_dlog(s1, "RTCP: %02x %"PRIx64" %x\n", s->payload_type, ntp_time, s->timestamp); |
|
262 |
+ av_log(s1, AV_LOG_TRACE, "RTCP: %02x %"PRIx64" %x\n", s->payload_type, ntp_time, s->timestamp); |
|
263 | 263 |
|
264 | 264 |
s->last_rtcp_ntp_time = ntp_time; |
265 | 265 |
rtp_ts = av_rescale_q(ntp_time - s->first_rtcp_ntp_time, (AVRational){1, 1000000}, |
... | ... |
@@ -304,7 +304,7 @@ void ff_rtp_send_data(AVFormatContext *s1, const uint8_t *buf1, int len, int m) |
304 | 304 |
{ |
305 | 305 |
RTPMuxContext *s = s1->priv_data; |
306 | 306 |
|
307 |
- av_dlog(s1, "rtp_send_data size=%d\n", len); |
|
307 |
+ av_log(s1, AV_LOG_TRACE, "rtp_send_data size=%d\n", len); |
|
308 | 308 |
|
309 | 309 |
/* build the RTP header */ |
310 | 310 |
avio_w8(s1->pb, RTP_VERSION << 6); |
... | ... |
@@ -492,7 +492,7 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt) |
492 | 492 |
int rtcp_bytes; |
493 | 493 |
int size= pkt->size; |
494 | 494 |
|
495 |
- av_dlog(s1, "%d: write len=%d\n", pkt->stream_index, size); |
|
495 |
+ av_log(s1, AV_LOG_TRACE, "%d: write len=%d\n", pkt->stream_index, size); |
|
496 | 496 |
|
497 | 497 |
rtcp_bytes = ((s->octet_count - s->last_octet_count) * RTCP_TX_RATIO_NUM) / |
498 | 498 |
RTCP_TX_RATIO_DEN; |
... | ... |
@@ -380,7 +380,7 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1, |
380 | 380 |
struct sockaddr_storage sdp_ip; |
381 | 381 |
int ttl; |
382 | 382 |
|
383 |
- av_dlog(s, "sdp: %c='%s'\n", letter, buf); |
|
383 |
+ av_log(s, AV_LOG_TRACE, "sdp: %c='%s'\n", letter, buf); |
|
384 | 384 |
|
385 | 385 |
p = buf; |
386 | 386 |
if (s1->skip_media && letter != 'm') |
... | ... |
@@ -1106,7 +1106,7 @@ void ff_rtsp_skip_packet(AVFormatContext *s) |
1106 | 1106 |
return; |
1107 | 1107 |
len = AV_RB16(buf + 1); |
1108 | 1108 |
|
1109 |
- av_dlog(s, "skipping RTP packet len=%d\n", len); |
|
1109 |
+ av_log(s, AV_LOG_TRACE, "skipping RTP packet len=%d\n", len); |
|
1110 | 1110 |
|
1111 | 1111 |
/* skip payload */ |
1112 | 1112 |
while (len > 0) { |
... | ... |
@@ -1143,7 +1143,7 @@ start: |
1143 | 1143 |
q = buf; |
1144 | 1144 |
for (;;) { |
1145 | 1145 |
ret = ffurl_read_complete(rt->rtsp_hd, &ch, 1); |
1146 |
- av_dlog(s, "ret=%d c=%02x [%c]\n", ret, ch, ch); |
|
1146 |
+ av_log(s, AV_LOG_TRACE, "ret=%d c=%02x [%c]\n", ret, ch, ch); |
|
1147 | 1147 |
if (ret != 1) |
1148 | 1148 |
return AVERROR_EOF; |
1149 | 1149 |
if (ch == '\n') |
... | ... |
@@ -1161,7 +1161,7 @@ start: |
1161 | 1161 |
} |
1162 | 1162 |
*q = '\0'; |
1163 | 1163 |
|
1164 |
- av_dlog(s, "line='%s'\n", buf); |
|
1164 |
+ av_log(s, AV_LOG_TRACE, "line='%s'\n", buf); |
|
1165 | 1165 |
|
1166 | 1166 |
/* test if last line */ |
1167 | 1167 |
if (buf[0] == '\0') |
... | ... |
@@ -1313,7 +1313,7 @@ static int rtsp_send_cmd_with_content_async(AVFormatContext *s, |
1313 | 1313 |
out_buf = base64buf; |
1314 | 1314 |
} |
1315 | 1315 |
|
1316 |
- av_dlog(s, "Sending:\n%s--\n", buf); |
|
1316 |
+ av_log(s, AV_LOG_TRACE, "Sending:\n%s--\n", buf); |
|
1317 | 1317 |
|
1318 | 1318 |
ffurl_write(rt->rtsp_hd_out, out_buf, strlen(out_buf)); |
1319 | 1319 |
if (send_content_length > 0 && send_content) { |
... | ... |
@@ -113,7 +113,7 @@ static int rtsp_send_reply(AVFormatContext *s, enum RTSPStatusCode code, |
113 | 113 |
if (extracontent) |
114 | 114 |
av_strlcat(message, extracontent, sizeof(message)); |
115 | 115 |
av_strlcat(message, "\r\n", sizeof(message)); |
116 |
- av_dlog(s, "Sending response:\n%s", message); |
|
116 |
+ av_log(s, AV_LOG_TRACE, "Sending response:\n%s", message); |
|
117 | 117 |
ffurl_write(rt->rtsp_hd_out, message, strlen(message)); |
118 | 118 |
|
119 | 119 |
return 0; |
... | ... |
@@ -149,7 +149,7 @@ static inline int rtsp_read_request(AVFormatContext *s, |
149 | 149 |
if (ret) |
150 | 150 |
return ret; |
151 | 151 |
if (rbuflen > 1) { |
152 |
- av_dlog(s, "Parsing[%d]: %s\n", rbuflen, rbuf); |
|
152 |
+ av_log(s, AV_LOG_TRACE, "Parsing[%d]: %s\n", rbuflen, rbuf); |
|
153 | 153 |
ff_rtsp_parse_line(request, rbuf, rt, method); |
154 | 154 |
} |
155 | 155 |
} while (rbuflen > 0); |
... | ... |
@@ -292,7 +292,7 @@ static int rtsp_read_setup(AVFormatContext *s, char* host, char *controlurl) |
292 | 292 |
snprintf(buf, sizeof(buf), "%d", rt->buffer_size); |
293 | 293 |
av_dict_set(&opts, "buffer_size", buf, 0); |
294 | 294 |
ff_url_join(url, sizeof(url), "rtp", NULL, host, localport, NULL); |
295 |
- av_dlog(s, "Opening: %s", url); |
|
295 |
+ av_log(s, AV_LOG_TRACE, "Opening: %s", url); |
|
296 | 296 |
ret = ffurl_open(&rtsp_st->rtp_handle, url, AVIO_FLAG_READ_WRITE, |
297 | 297 |
&s->interrupt_callback, &opts); |
298 | 298 |
av_dict_free(&opts); |
... | ... |
@@ -304,7 +304,7 @@ static int rtsp_read_setup(AVFormatContext *s, char* host, char *controlurl) |
304 | 304 |
return ret; |
305 | 305 |
} |
306 | 306 |
|
307 |
- av_dlog(s, "Listening on: %d", |
|
307 |
+ av_log(s, AV_LOG_TRACE, "Listening on: %d", |
|
308 | 308 |
ff_rtp_get_local_rtp_port(rtsp_st->rtp_handle)); |
309 | 309 |
if ((ret = ff_rtsp_open_transport_ctx(s, rtsp_st))) { |
310 | 310 |
rtsp_send_reply(s, RTSP_STATUS_TRANSPORT, NULL, request.seq); |
... | ... |
@@ -750,7 +750,7 @@ int ff_rtsp_tcp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st, |
750 | 750 |
int id, len, i, ret; |
751 | 751 |
RTSPStream *rtsp_st; |
752 | 752 |
|
753 |
- av_dlog(s, "tcp_read_packet:\n"); |
|
753 |
+ av_log(s, AV_LOG_TRACE, "tcp_read_packet:\n"); |
|
754 | 754 |
redo: |
755 | 755 |
for (;;) { |
756 | 756 |
RTSPMessageHeader reply; |
... | ... |
@@ -769,7 +769,7 @@ redo: |
769 | 769 |
return -1; |
770 | 770 |
id = buf[0]; |
771 | 771 |
len = AV_RB16(buf + 1); |
772 |
- av_dlog(s, "id=%d len=%d\n", id, len); |
|
772 |
+ av_log(s, AV_LOG_TRACE, "id=%d len=%d\n", id, len); |
|
773 | 773 |
if (len > buf_size || len < 12) |
774 | 774 |
goto redo; |
775 | 775 |
/* get the data */ |
... | ... |
@@ -652,7 +652,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, |
652 | 652 |
pkt->pts > pkt->dts) |
653 | 653 |
presentation_delayed = 1; |
654 | 654 |
|
655 |
- av_dlog(NULL, |
|
655 |
+ av_log(NULL, AV_LOG_TRACE, |
|
656 | 656 |
"IN delayed:%d pts:%"PRId64", dts:%"PRId64" " |
657 | 657 |
"cur_dts:%"PRId64" st:%d pc:%p\n", |
658 | 658 |
presentation_delayed, pkt->pts, pkt->dts, st->cur_dts, |
... | ... |
@@ -728,7 +728,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, |
728 | 728 |
st->cur_dts = pkt->dts; |
729 | 729 |
} |
730 | 730 |
|
731 |
- av_dlog(NULL, |
|
731 |
+ av_log(NULL, AV_LOG_TRACE, |
|
732 | 732 |
"OUTdelayed:%d/%d pts:%"PRId64", dts:%"PRId64" cur_dts:%"PRId64"\n", |
733 | 733 |
presentation_delayed, delay, pkt->pts, pkt->dts, st->cur_dts); |
734 | 734 |
|
... | ... |
@@ -1220,7 +1220,7 @@ int ff_seek_frame_binary(AVFormatContext *s, int stream_index, |
1220 | 1220 |
if (stream_index < 0) |
1221 | 1221 |
return -1; |
1222 | 1222 |
|
1223 |
- av_dlog(s, "read_seek: %d %"PRId64"\n", stream_index, target_ts); |
|
1223 |
+ av_log(s, AV_LOG_TRACE, "read_seek: %d %"PRId64"\n", stream_index, target_ts); |
|
1224 | 1224 |
|
1225 | 1225 |
ts_max = |
1226 | 1226 |
ts_min = AV_NOPTS_VALUE; |
... | ... |
@@ -1240,7 +1240,7 @@ int ff_seek_frame_binary(AVFormatContext *s, int stream_index, |
1240 | 1240 |
if (e->timestamp <= target_ts || e->pos == e->min_distance) { |
1241 | 1241 |
pos_min = e->pos; |
1242 | 1242 |
ts_min = e->timestamp; |
1243 |
- av_dlog(s, "using cached pos_min=0x%"PRIx64" dts_min=%"PRId64"\n", |
|
1243 |
+ av_log(s, AV_LOG_TRACE, "using cached pos_min=0x%"PRIx64" dts_min=%"PRId64"\n", |
|
1244 | 1244 |
pos_min, ts_min); |
1245 | 1245 |
} else { |
1246 | 1246 |
assert(index == 0); |
... | ... |
@@ -1255,7 +1255,7 @@ int ff_seek_frame_binary(AVFormatContext *s, int stream_index, |
1255 | 1255 |
pos_max = e->pos; |
1256 | 1256 |
ts_max = e->timestamp; |
1257 | 1257 |
pos_limit = pos_max - e->min_distance; |
1258 |
- av_dlog(s, "using cached pos_max=0x%"PRIx64" pos_limit=0x%"PRIx64 |
|
1258 |
+ av_log(s, AV_LOG_TRACE, "using cached pos_max=0x%"PRIx64" pos_limit=0x%"PRIx64 |
|
1259 | 1259 |
" dts_max=%"PRId64"\n", pos_max, pos_limit, ts_max); |
1260 | 1260 |
} |
1261 | 1261 |
} |
... | ... |
@@ -1285,7 +1285,7 @@ int64_t ff_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts, |
1285 | 1285 |
int64_t start_pos, filesize; |
1286 | 1286 |
int no_change; |
1287 | 1287 |
|
1288 |
- av_dlog(s, "gen_seek: %d %"PRId64"\n", stream_index, target_ts); |
|
1288 |
+ av_log(s, AV_LOG_TRACE, "gen_seek: %d %"PRId64"\n", stream_index, target_ts); |
|
1289 | 1289 |
|
1290 | 1290 |
if (ts_min == AV_NOPTS_VALUE) { |
1291 | 1291 |
pos_min = s->internal->data_offset; |
... | ... |
@@ -1328,7 +1328,7 @@ int64_t ff_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts, |
1328 | 1328 |
|
1329 | 1329 |
no_change = 0; |
1330 | 1330 |
while (pos_min < pos_limit) { |
1331 |
- av_dlog(s, "pos_min=0x%"PRIx64" pos_max=0x%"PRIx64" dts_min=%"PRId64 |
|
1331 |
+ av_log(s, AV_LOG_TRACE, "pos_min=0x%"PRIx64" pos_max=0x%"PRIx64" dts_min=%"PRId64 |
|
1332 | 1332 |
" dts_max=%"PRId64"\n", pos_min, pos_max, ts_min, ts_max); |
1333 | 1333 |
assert(pos_limit <= pos_max); |
1334 | 1334 |
|
... | ... |
@@ -1358,7 +1358,7 @@ int64_t ff_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts, |
1358 | 1358 |
no_change++; |
1359 | 1359 |
else |
1360 | 1360 |
no_change = 0; |
1361 |
- av_dlog(s, "%"PRId64" %"PRId64" %"PRId64" / %"PRId64" %"PRId64" %"PRId64 |
|
1361 |
+ av_log(s, AV_LOG_TRACE, "%"PRId64" %"PRId64" %"PRId64" / %"PRId64" %"PRId64" %"PRId64 |
|
1362 | 1362 |
" target:%"PRId64" limit:%"PRId64" start:%"PRId64" noc:%d\n", |
1363 | 1363 |
pos_min, pos, pos_max, ts_min, ts, ts_max, target_ts, |
1364 | 1364 |
pos_limit, start_pos, no_change); |
... | ... |
@@ -1384,7 +1384,7 @@ int64_t ff_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts, |
1384 | 1384 |
ts_min = read_timestamp(s, stream_index, &pos_min, INT64_MAX); |
1385 | 1385 |
pos_min++; |
1386 | 1386 |
ts_max = read_timestamp(s, stream_index, &pos_min, INT64_MAX); |
1387 |
- av_dlog(s, "pos=0x%"PRIx64" %"PRId64"<=%"PRId64"<=%"PRId64"\n", |
|
1387 |
+ av_log(s, AV_LOG_TRACE, "pos=0x%"PRIx64" %"PRId64"<=%"PRId64"<=%"PRId64"\n", |
|
1388 | 1388 |
pos, ts_min, target_ts, ts_max); |
1389 | 1389 |
*ts_ret = ts; |
1390 | 1390 |
return pos; |
... | ... |
@@ -1796,11 +1796,11 @@ static void estimate_timings(AVFormatContext *ic, int64_t old_offset) |
1796 | 1796 |
AVStream av_unused *st; |
1797 | 1797 |
for (i = 0; i < ic->nb_streams; i++) { |
1798 | 1798 |
st = ic->streams[i]; |
1799 |
- av_dlog(ic, "%d: start_time: %0.3f duration: %0.3f\n", i, |
|
1799 |
+ av_log(ic, AV_LOG_TRACE, "%d: start_time: %0.3f duration: %0.3f\n", i, |
|
1800 | 1800 |
(double) st->start_time / AV_TIME_BASE, |
1801 | 1801 |
(double) st->duration / AV_TIME_BASE); |
1802 | 1802 |
} |
1803 |
- av_dlog(ic, |
|
1803 |
+ av_log(ic, AV_LOG_TRACE, |
|
1804 | 1804 |
"stream: start_time: %0.3f duration: %0.3f bitrate=%d kb/s\n", |
1805 | 1805 |
(double) ic->start_time / AV_TIME_BASE, |
1806 | 1806 |
(double) ic->duration / AV_TIME_BASE, |
... | ... |
@@ -2568,7 +2568,7 @@ AVProgram *av_new_program(AVFormatContext *ac, int id) |
2568 | 2568 |
AVProgram *program = NULL; |
2569 | 2569 |
int i; |
2570 | 2570 |
|
2571 |
- av_dlog(ac, "new_program: id=0x%04x\n", id); |
|
2571 |
+ av_log(ac, AV_LOG_TRACE, "new_program: id=0x%04x\n", id); |
|
2572 | 2572 |
|
2573 | 2573 |
for (i = 0; i < ac->nb_programs; i++) |
2574 | 2574 |
if (ac->programs[i]->id == id) |
... | ... |
@@ -319,7 +319,7 @@ int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in) |
319 | 319 |
|
320 | 320 |
if (ac->dc) { |
321 | 321 |
/* dithered conversion */ |
322 |
- av_dlog(ac->avr, "%d samples - audio_convert: %s to %s (dithered)\n", |
|
322 |
+ av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (dithered)\n", |
|
323 | 323 |
len, av_get_sample_fmt_name(ac->in_fmt), |
324 | 324 |
av_get_sample_fmt_name(ac->out_fmt)); |
325 | 325 |
|
... | ... |
@@ -337,7 +337,7 @@ int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in) |
337 | 337 |
use_generic = 0; |
338 | 338 |
} |
339 | 339 |
} |
340 |
- av_dlog(ac->avr, "%d samples - audio_convert: %s to %s (%s)\n", len, |
|
340 |
+ av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (%s)\n", len, |
|
341 | 341 |
av_get_sample_fmt_name(ac->in_fmt), |
342 | 342 |
av_get_sample_fmt_name(ac->out_fmt), |
343 | 343 |
use_generic ? ac->func_descr_generic : ac->func_descr); |
... | ... |
@@ -441,7 +441,7 @@ int ff_audio_mix(AudioMix *am, AudioData *src) |
441 | 441 |
use_generic = 0; |
442 | 442 |
} |
443 | 443 |
} |
444 |
- av_dlog(am->avr, "audio_mix: %d samples - %d to %d channels (%s)\n", |
|
444 |
+ av_log(am->avr, AV_LOG_TRACE, "audio_mix: %d samples - %d to %d channels (%s)\n", |
|
445 | 445 |
src->nb_samples, am->in_channels, am->out_channels, |
446 | 446 |
use_generic ? am->func_descr_generic : am->func_descr); |
447 | 447 |
|
... | ... |
@@ -485,7 +485,7 @@ int ff_audio_resample(ResampleContext *c, AudioData *dst, AudioData *src) |
485 | 485 |
ff_audio_data_drain(c->buffer, consumed); |
486 | 486 |
c->initial_padding_samples = FFMAX(c->initial_padding_samples - consumed, 0); |
487 | 487 |
|
488 |
- av_dlog(c->avr, "resampled %d in + %d leftover to %d out + %d leftover\n", |
|
488 |
+ av_log(c->avr, AV_LOG_TRACE, "resampled %d in + %d leftover to %d out + %d leftover\n", |
|
489 | 489 |
in_samples, in_leftover, out_samples, c->buffer->nb_samples); |
490 | 490 |
|
491 | 491 |
dst->nb_samples = out_samples; |
... | ... |
@@ -127,46 +127,46 @@ int avresample_open(AVAudioResampleContext *avr) |
127 | 127 |
if (avr->use_channel_map) { |
128 | 128 |
if (avr->in_copy_needed) { |
129 | 129 |
avr->remap_point = REMAP_IN_COPY; |
130 |
- av_dlog(avr, "remap channels during in_copy\n"); |
|
130 |
+ av_log(avr, AV_LOG_TRACE, "remap channels during in_copy\n"); |
|
131 | 131 |
} else if (avr->in_convert_needed) { |
132 | 132 |
avr->remap_point = REMAP_IN_CONVERT; |
133 |
- av_dlog(avr, "remap channels during in_convert\n"); |
|
133 |
+ av_log(avr, AV_LOG_TRACE, "remap channels during in_convert\n"); |
|
134 | 134 |
} else if (avr->out_convert_needed) { |
135 | 135 |
avr->remap_point = REMAP_OUT_CONVERT; |
136 |
- av_dlog(avr, "remap channels during out_convert\n"); |
|
136 |
+ av_log(avr, AV_LOG_TRACE, "remap channels during out_convert\n"); |
|
137 | 137 |
} else { |
138 | 138 |
avr->remap_point = REMAP_OUT_COPY; |
139 |
- av_dlog(avr, "remap channels during out_copy\n"); |
|
139 |
+ av_log(avr, AV_LOG_TRACE, "remap channels during out_copy\n"); |
|
140 | 140 |
} |
141 | 141 |
|
142 | 142 |
#ifdef DEBUG |
143 | 143 |
{ |
144 | 144 |
int ch; |
145 |
- av_dlog(avr, "output map: "); |
|
145 |
+ av_log(avr, AV_LOG_TRACE, "output map: "); |
|
146 | 146 |
if (avr->ch_map_info.do_remap) |
147 | 147 |
for (ch = 0; ch < avr->in_channels; ch++) |
148 |
- av_dlog(avr, " % 2d", avr->ch_map_info.channel_map[ch]); |
|
148 |
+ av_log(avr, AV_LOG_TRACE, " % 2d", avr->ch_map_info.channel_map[ch]); |
|
149 | 149 |
else |
150 |
- av_dlog(avr, "n/a"); |
|
151 |
- av_dlog(avr, "\n"); |
|
152 |
- av_dlog(avr, "copy map: "); |
|
150 |
+ av_log(avr, AV_LOG_TRACE, "n/a"); |
|
151 |
+ av_log(avr, AV_LOG_TRACE, "\n"); |
|
152 |
+ av_log(avr, AV_LOG_TRACE, "copy map: "); |
|
153 | 153 |
if (avr->ch_map_info.do_copy) |
154 | 154 |
for (ch = 0; ch < avr->in_channels; ch++) |
155 |
- av_dlog(avr, " % 2d", avr->ch_map_info.channel_copy[ch]); |
|
155 |
+ av_log(avr, AV_LOG_TRACE, " % 2d", avr->ch_map_info.channel_copy[ch]); |
|
156 | 156 |
else |
157 |
- av_dlog(avr, "n/a"); |
|
158 |
- av_dlog(avr, "\n"); |
|
159 |
- av_dlog(avr, "zero map: "); |
|
157 |
+ av_log(avr, AV_LOG_TRACE, "n/a"); |
|
158 |
+ av_log(avr, AV_LOG_TRACE, "\n"); |
|
159 |
+ av_log(avr, AV_LOG_TRACE, "zero map: "); |
|
160 | 160 |
if (avr->ch_map_info.do_zero) |
161 | 161 |
for (ch = 0; ch < avr->in_channels; ch++) |
162 |
- av_dlog(avr, " % 2d", avr->ch_map_info.channel_zero[ch]); |
|
162 |
+ av_log(avr, AV_LOG_TRACE, " % 2d", avr->ch_map_info.channel_zero[ch]); |
|
163 | 163 |
else |
164 |
- av_dlog(avr, "n/a"); |
|
165 |
- av_dlog(avr, "\n"); |
|
166 |
- av_dlog(avr, "input map: "); |
|
164 |
+ av_log(avr, AV_LOG_TRACE, "n/a"); |
|
165 |
+ av_log(avr, AV_LOG_TRACE, "\n"); |
|
166 |
+ av_log(avr, AV_LOG_TRACE, "input map: "); |
|
167 | 167 |
for (ch = 0; ch < avr->in_channels; ch++) |
168 |
- av_dlog(avr, " % 2d", avr->ch_map_info.input_map[ch]); |
|
169 |
- av_dlog(avr, "\n"); |
|
168 |
+ av_log(avr, AV_LOG_TRACE, " % 2d", avr->ch_map_info.input_map[ch]); |
|
169 |
+ av_log(avr, AV_LOG_TRACE, "\n"); |
|
170 | 170 |
} |
171 | 171 |
#endif |
172 | 172 |
} else |
... | ... |
@@ -295,7 +295,7 @@ static int handle_buffered_output(AVAudioResampleContext *avr, |
295 | 295 |
/* if there are any samples in the output FIFO or if the |
296 | 296 |
user-supplied output buffer is not large enough for all samples, |
297 | 297 |
we add to the output FIFO */ |
298 |
- av_dlog(avr, "[FIFO] add %s to out_fifo\n", converted->name); |
|
298 |
+ av_log(avr, AV_LOG_TRACE, "[FIFO] add %s to out_fifo\n", converted->name); |
|
299 | 299 |
ret = ff_audio_data_add_to_fifo(avr->out_fifo, converted, 0, |
300 | 300 |
converted->nb_samples); |
301 | 301 |
if (ret < 0) |
... | ... |
@@ -305,25 +305,25 @@ static int handle_buffered_output(AVAudioResampleContext *avr, |
305 | 305 |
/* if the user specified an output buffer, read samples from the output |
306 | 306 |
FIFO to the user output */ |
307 | 307 |
if (output && output->allocated_samples > 0) { |
308 |
- av_dlog(avr, "[FIFO] read from out_fifo to output\n"); |
|
309 |
- av_dlog(avr, "[end conversion]\n"); |
|
308 |
+ av_log(avr, AV_LOG_TRACE, "[FIFO] read from out_fifo to output\n"); |
|
309 |
+ av_log(avr, AV_LOG_TRACE, "[end conversion]\n"); |
|
310 | 310 |
return ff_audio_data_read_from_fifo(avr->out_fifo, output, |
311 | 311 |
output->allocated_samples); |
312 | 312 |
} |
313 | 313 |
} else if (converted) { |
314 | 314 |
/* copy directly to output if it is large enough or there is not any |
315 | 315 |
data in the output FIFO */ |
316 |
- av_dlog(avr, "[copy] %s to output\n", converted->name); |
|
316 |
+ av_log(avr, AV_LOG_TRACE, "[copy] %s to output\n", converted->name); |
|
317 | 317 |
output->nb_samples = 0; |
318 | 318 |
ret = ff_audio_data_copy(output, converted, |
319 | 319 |
avr->remap_point == REMAP_OUT_COPY ? |
320 | 320 |
&avr->ch_map_info : NULL); |
321 | 321 |
if (ret < 0) |
322 | 322 |
return ret; |
323 |
- av_dlog(avr, "[end conversion]\n"); |
|
323 |
+ av_log(avr, AV_LOG_TRACE, "[end conversion]\n"); |
|
324 | 324 |
return output->nb_samples; |
325 | 325 |
} |
326 |
- av_dlog(avr, "[end conversion]\n"); |
|
326 |
+ av_log(avr, AV_LOG_TRACE, "[end conversion]\n"); |
|
327 | 327 |
return 0; |
328 | 328 |
} |
329 | 329 |
|
... | ... |
@@ -354,7 +354,7 @@ int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, |
354 | 354 |
avr->out_buffer->allocated_channels); |
355 | 355 |
} |
356 | 356 |
|
357 |
- av_dlog(avr, "[start conversion]\n"); |
|
357 |
+ av_log(avr, AV_LOG_TRACE, "[start conversion]\n"); |
|
358 | 358 |
|
359 | 359 |
/* initialize output_buffer with output data */ |
360 | 360 |
direct_output = output && av_audio_fifo_size(avr->out_fifo) == 0; |
... | ... |
@@ -380,7 +380,7 @@ int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, |
380 | 380 |
!avr->out_convert_needed && direct_output && out_samples >= in_samples) { |
381 | 381 |
/* in some rare cases we can copy input to output and upmix |
382 | 382 |
directly in the output buffer */ |
383 |
- av_dlog(avr, "[copy] %s to output\n", current_buffer->name); |
|
383 |
+ av_log(avr, AV_LOG_TRACE, "[copy] %s to output\n", current_buffer->name); |
|
384 | 384 |
ret = ff_audio_data_copy(&output_buffer, current_buffer, |
385 | 385 |
avr->remap_point == REMAP_OUT_COPY ? |
386 | 386 |
&avr->ch_map_info : NULL); |
... | ... |
@@ -392,7 +392,7 @@ int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, |
392 | 392 |
/* if remapping channels during output copy, we may need to |
393 | 393 |
* use an intermediate buffer in order to remap before adding |
394 | 394 |
* samples to the output fifo */ |
395 |
- av_dlog(avr, "[copy] %s to out_buffer\n", current_buffer->name); |
|
395 |
+ av_log(avr, AV_LOG_TRACE, "[copy] %s to out_buffer\n", current_buffer->name); |
|
396 | 396 |
ret = ff_audio_data_copy(avr->out_buffer, current_buffer, |
397 | 397 |
&avr->ch_map_info); |
398 | 398 |
if (ret < 0) |
... | ... |
@@ -406,13 +406,13 @@ int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, |
406 | 406 |
current_buffer->nb_samples); |
407 | 407 |
if (ret < 0) |
408 | 408 |
return ret; |
409 |
- av_dlog(avr, "[convert] %s to in_buffer\n", current_buffer->name); |
|
409 |
+ av_log(avr, AV_LOG_TRACE, "[convert] %s to in_buffer\n", current_buffer->name); |
|
410 | 410 |
ret = ff_audio_convert(avr->ac_in, avr->in_buffer, |
411 | 411 |
current_buffer); |
412 | 412 |
if (ret < 0) |
413 | 413 |
return ret; |
414 | 414 |
} else { |
415 |
- av_dlog(avr, "[copy] %s to in_buffer\n", current_buffer->name); |
|
415 |
+ av_log(avr, AV_LOG_TRACE, "[copy] %s to in_buffer\n", current_buffer->name); |
|
416 | 416 |
ret = ff_audio_data_copy(avr->in_buffer, current_buffer, |
417 | 417 |
avr->remap_point == REMAP_IN_COPY ? |
418 | 418 |
&avr->ch_map_info : NULL); |
... | ... |
@@ -421,7 +421,7 @@ int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, |
421 | 421 |
} |
422 | 422 |
ff_audio_data_set_channels(avr->in_buffer, avr->in_channels); |
423 | 423 |
if (avr->downmix_needed) { |
424 |
- av_dlog(avr, "[downmix] in_buffer\n"); |
|
424 |
+ av_log(avr, AV_LOG_TRACE, "[downmix] in_buffer\n"); |
|
425 | 425 |
ret = ff_audio_mix(avr->am, avr->in_buffer); |
426 | 426 |
if (ret < 0) |
427 | 427 |
return ret; |
... | ... |
@@ -443,7 +443,7 @@ int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, |
443 | 443 |
resample_out = &output_buffer; |
444 | 444 |
else |
445 | 445 |
resample_out = avr->resample_out_buffer; |
446 |
- av_dlog(avr, "[resample] %s to %s\n", |
|
446 |
+ av_log(avr, AV_LOG_TRACE, "[resample] %s to %s\n", |
|
447 | 447 |
current_buffer ? current_buffer->name : "null", |
448 | 448 |
resample_out->name); |
449 | 449 |
ret = ff_audio_resample(avr->resample, resample_out, |
... | ... |
@@ -453,7 +453,7 @@ int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, |
453 | 453 |
|
454 | 454 |
/* if resampling did not produce any samples, just return 0 */ |
455 | 455 |
if (resample_out->nb_samples == 0) { |
456 |
- av_dlog(avr, "[end conversion]\n"); |
|
456 |
+ av_log(avr, AV_LOG_TRACE, "[end conversion]\n"); |
|
457 | 457 |
return 0; |
458 | 458 |
} |
459 | 459 |
|
... | ... |
@@ -461,7 +461,7 @@ int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, |
461 | 461 |
} |
462 | 462 |
|
463 | 463 |
if (avr->upmix_needed) { |
464 |
- av_dlog(avr, "[upmix] %s\n", current_buffer->name); |
|
464 |
+ av_log(avr, AV_LOG_TRACE, "[upmix] %s\n", current_buffer->name); |
|
465 | 465 |
ret = ff_audio_mix(avr->am, current_buffer); |
466 | 466 |
if (ret < 0) |
467 | 467 |
return ret; |
... | ... |
@@ -469,26 +469,26 @@ int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, |
469 | 469 |
|
470 | 470 |
/* if we resampled or upmixed directly to output, return here */ |
471 | 471 |
if (current_buffer == &output_buffer) { |
472 |
- av_dlog(avr, "[end conversion]\n"); |
|
472 |
+ av_log(avr, AV_LOG_TRACE, "[end conversion]\n"); |
|
473 | 473 |
return current_buffer->nb_samples; |
474 | 474 |
} |
475 | 475 |
|
476 | 476 |
if (avr->out_convert_needed) { |
477 | 477 |
if (direct_output && out_samples >= current_buffer->nb_samples) { |
478 | 478 |
/* convert directly to output */ |
479 |
- av_dlog(avr, "[convert] %s to output\n", current_buffer->name); |
|
479 |
+ av_log(avr, AV_LOG_TRACE, "[convert] %s to output\n", current_buffer->name); |
|
480 | 480 |
ret = ff_audio_convert(avr->ac_out, &output_buffer, current_buffer); |
481 | 481 |
if (ret < 0) |
482 | 482 |
return ret; |
483 | 483 |
|
484 |
- av_dlog(avr, "[end conversion]\n"); |
|
484 |
+ av_log(avr, AV_LOG_TRACE, "[end conversion]\n"); |
|
485 | 485 |
return output_buffer.nb_samples; |
486 | 486 |
} else { |
487 | 487 |
ret = ff_audio_data_realloc(avr->out_buffer, |
488 | 488 |
current_buffer->nb_samples); |
489 | 489 |
if (ret < 0) |
490 | 490 |
return ret; |
491 |
- av_dlog(avr, "[convert] %s to out_buffer\n", current_buffer->name); |
|
491 |
+ av_log(avr, AV_LOG_TRACE, "[convert] %s to out_buffer\n", current_buffer->name); |
|
492 | 492 |
ret = ff_audio_convert(avr->ac_out, avr->out_buffer, |
493 | 493 |
current_buffer); |
494 | 494 |
if (ret < 0) |