ff_dlog checks compilability, and is non-public. av_dlog is deprecated
and no longer exists if FF_API_DLOG=0.
... | ... |
@@ -1151,7 +1151,7 @@ static void do_video_out(AVFormatContext *s, |
1151 | 1151 |
ost->forced_keyframes_expr_const_values[FKF_T] = pts_time; |
1152 | 1152 |
res = av_expr_eval(ost->forced_keyframes_pexpr, |
1153 | 1153 |
ost->forced_keyframes_expr_const_values, NULL); |
1154 |
- av_dlog(NULL, "force_key_frame: n:%f n_forced:%f prev_forced_n:%f t:%f prev_forced_t:%f -> res:%f\n", |
|
1154 |
+ ff_dlog(NULL, "force_key_frame: n:%f n_forced:%f prev_forced_n:%f t:%f prev_forced_t:%f -> res:%f\n", |
|
1155 | 1155 |
ost->forced_keyframes_expr_const_values[FKF_N], |
1156 | 1156 |
ost->forced_keyframes_expr_const_values[FKF_N_FORCED], |
1157 | 1157 |
ost->forced_keyframes_expr_const_values[FKF_PREV_FORCED_N], |
... | ... |
@@ -21,6 +21,7 @@ |
21 | 21 |
|
22 | 22 |
#include "avcodec.h" |
23 | 23 |
#include "ass.h" |
24 |
+#include "libavutil/internal.h" |
|
24 | 25 |
#include "libavutil/opt.h" |
25 | 26 |
|
26 | 27 |
#define SCREEN_ROWS 15 |
... | ... |
@@ -451,9 +452,9 @@ static void handle_char(CCaptionSubContext *ctx, char hi, char lo, int64_t pts) |
451 | 451 |
ctx->prev_cmd[0] = 0; |
452 | 452 |
ctx->prev_cmd[1] = 0; |
453 | 453 |
if (lo) |
454 |
- av_dlog(ctx, "(%c,%c)\n",hi,lo); |
|
454 |
+ ff_dlog(ctx, "(%c,%c)\n",hi,lo); |
|
455 | 455 |
else |
456 |
- av_dlog(ctx, "(%c)\n",hi); |
|
456 |
+ ff_dlog(ctx, "(%c)\n",hi); |
|
457 | 457 |
} |
458 | 458 |
|
459 | 459 |
static int process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint8_t lo) |
... | ... |
@@ -493,21 +494,21 @@ static int process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint8 |
493 | 493 |
ret = handle_edm(ctx, pts); |
494 | 494 |
} else if ( COR3(hi, 0x14, 0x15, 0x1C) && lo == 0x2D ) { |
495 | 495 |
/* carriage return */ |
496 |
- av_dlog(ctx, "carriage return\n"); |
|
496 |
+ ff_dlog(ctx, "carriage return\n"); |
|
497 | 497 |
reap_screen(ctx, pts); |
498 | 498 |
roll_up(ctx); |
499 | 499 |
ctx->screen_changed = 1; |
500 | 500 |
ctx->cursor_column = 0; |
501 | 501 |
} else if ( COR3(hi, 0x14, 0x15, 0x1C) && lo == 0x2F ) { |
502 | 502 |
/* end of caption */ |
503 |
- av_dlog(ctx, "handle_eoc\n"); |
|
503 |
+ ff_dlog(ctx, "handle_eoc\n"); |
|
504 | 504 |
ret = handle_eoc(ctx, pts); |
505 | 505 |
} else if (hi>=0x20) { |
506 | 506 |
/* Standard characters (always in pairs) */ |
507 | 507 |
handle_char(ctx, hi, lo, pts); |
508 | 508 |
} else { |
509 | 509 |
/* Ignoring all other non data code */ |
510 |
- av_dlog(ctx, "Unknown command 0x%hhx 0x%hhx\n", hi, lo); |
|
510 |
+ ff_dlog(ctx, "Unknown command 0x%hhx 0x%hhx\n", hi, lo); |
|
511 | 511 |
} |
512 | 512 |
|
513 | 513 |
/* set prev command */ |
... | ... |
@@ -553,7 +554,7 @@ static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avp |
553 | 553 |
{ |
554 | 554 |
int start_time = av_rescale_q(ctx->start_time, avctx->time_base, (AVRational){ 1, 100 }); |
555 | 555 |
int end_time = av_rescale_q(ctx->end_time, avctx->time_base, (AVRational){ 1, 100 }); |
556 |
- av_dlog(ctx, "cdp writing data (%s)\n",ctx->buffer.str); |
|
556 |
+ ff_dlog(ctx, "cdp writing data (%s)\n",ctx->buffer.str); |
|
557 | 557 |
ret = ff_ass_add_rect_bprint(sub, &ctx->buffer, start_time, end_time - start_time); |
558 | 558 |
if (ret < 0) |
559 | 559 |
return ret; |
... | ... |
@@ -22,6 +22,7 @@ |
22 | 22 |
#include "libavcodec/ass.h" |
23 | 23 |
#include "libavutil/opt.h" |
24 | 24 |
#include "libavutil/bprint.h" |
25 |
+#include "libavutil/internal.h" |
|
25 | 26 |
#include "libavutil/intreadwrite.h" |
26 | 27 |
#include "libavutil/log.h" |
27 | 28 |
|
... | ... |
@@ -274,7 +275,7 @@ static int gen_sub_bitmap(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_pa |
274 | 274 |
b = VBI_B(page->color_map[ci]); |
275 | 275 |
a = VBI_A(page->color_map[ci]); |
276 | 276 |
((uint32_t *)sub_rect->pict.data[1])[ci] = RGBA(r, g, b, a); |
277 |
- av_dlog(ctx, "palette %0x\n", ((uint32_t *)sub_rect->pict.data[1])[ci]); |
|
277 |
+ ff_dlog(ctx, "palette %0x\n", ((uint32_t *)sub_rect->pict.data[1])[ci]); |
|
278 | 278 |
} |
279 | 279 |
((uint32_t *)sub_rect->pict.data[1])[cmax] = RGBA(0, 0, 0, 0); |
280 | 280 |
sub_rect->type = SUBTITLE_BITMAP; |
... | ... |
@@ -427,7 +428,7 @@ static int teletext_decode_frame(AVCodecContext *avctx, void *data, int *data_si |
427 | 427 |
if (data_identifier_is_teletext(*pkt->data)) { |
428 | 428 |
if ((lines = slice_to_vbi_lines(ctx, pkt->data + 1, pkt->size - 1)) < 0) |
429 | 429 |
return lines; |
430 |
- av_dlog(avctx, "ctx=%p buf_size=%d lines=%u pkt_pts=%7.3f\n", |
|
430 |
+ ff_dlog(avctx, "ctx=%p buf_size=%d lines=%u pkt_pts=%7.3f\n", |
|
431 | 431 |
ctx, pkt->size, lines, (double)pkt->pts/90000.0); |
432 | 432 |
if (lines > 0) { |
433 | 433 |
#ifdef DEBUG |
... | ... |
@@ -517,7 +518,7 @@ static int teletext_close_decoder(AVCodecContext *avctx) |
517 | 517 |
{ |
518 | 518 |
TeletextContext *ctx = avctx->priv_data; |
519 | 519 |
|
520 |
- av_dlog(avctx, "lines_total=%u\n", ctx->lines_processed); |
|
520 |
+ ff_dlog(avctx, "lines_total=%u\n", ctx->lines_processed); |
|
521 | 521 |
while (ctx->nb_pages) |
522 | 522 |
subtitle_rect_free(&ctx->pages[--ctx->nb_pages].sub_rect); |
523 | 523 |
av_freep(&ctx->pages); |
... | ... |
@@ -28,6 +28,7 @@ |
28 | 28 |
|
29 | 29 |
#define LONG_BITSTREAM_READER |
30 | 30 |
|
31 |
+#include "libavutil/internal.h" |
|
31 | 32 |
#include "avcodec.h" |
32 | 33 |
#include "get_bits.h" |
33 | 34 |
#include "idctdsp.h" |
... | ... |
@@ -70,14 +71,14 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf, |
70 | 70 |
const uint8_t *ptr; |
71 | 71 |
|
72 | 72 |
hdr_size = AV_RB16(buf); |
73 |
- av_dlog(avctx, "header size %d\n", hdr_size); |
|
73 |
+ ff_dlog(avctx, "header size %d\n", hdr_size); |
|
74 | 74 |
if (hdr_size > data_size) { |
75 | 75 |
av_log(avctx, AV_LOG_ERROR, "error, wrong header size\n"); |
76 | 76 |
return AVERROR_INVALIDDATA; |
77 | 77 |
} |
78 | 78 |
|
79 | 79 |
version = AV_RB16(buf + 2); |
80 |
- av_dlog(avctx, "%.4s version %d\n", buf+4, version); |
|
80 |
+ ff_dlog(avctx, "%.4s version %d\n", buf+4, version); |
|
81 | 81 |
if (version > 1) { |
82 | 82 |
av_log(avctx, AV_LOG_ERROR, "unsupported version: %d\n", version); |
83 | 83 |
return AVERROR_PATCHWELCOME; |
... | ... |
@@ -100,7 +101,7 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf, |
100 | 100 |
} |
101 | 101 |
if (avctx->skip_alpha) ctx->alpha_info = 0; |
102 | 102 |
|
103 |
- av_dlog(avctx, "frame type %d\n", ctx->frame_type); |
|
103 |
+ ff_dlog(avctx, "frame type %d\n", ctx->frame_type); |
|
104 | 104 |
|
105 | 105 |
if (ctx->frame_type == 0) { |
106 | 106 |
ctx->scan = ctx->progressive_scan; // permuted |
... | ... |
@@ -118,7 +119,7 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf, |
118 | 118 |
|
119 | 119 |
ptr = buf + 20; |
120 | 120 |
flags = buf[19]; |
121 |
- av_dlog(avctx, "flags %x\n", flags); |
|
121 |
+ ff_dlog(avctx, "flags %x\n", flags); |
|
122 | 122 |
|
123 | 123 |
if (flags & 2) { |
124 | 124 |
if(buf + data_size - ptr < 64) { |
... | ... |
@@ -30,6 +30,7 @@ |
30 | 30 |
#include "libavutil/bprint.h" |
31 | 31 |
#include "libavutil/channel_layout.h" |
32 | 32 |
#include "libavutil/file.h" |
33 |
+#include "libavutil/internal.h" |
|
33 | 34 |
#include "libavutil/log.h" |
34 | 35 |
#include "libavutil/mem.h" |
35 | 36 |
#include "libavutil/opt.h" |
... | ... |
@@ -406,13 +407,13 @@ static int lavfi_read_packet(AVFormatContext *avctx, AVPacket *pkt) |
406 | 406 |
ret = av_buffersink_get_frame_flags(lavfi->sinks[i], frame, |
407 | 407 |
AV_BUFFERSINK_FLAG_PEEK); |
408 | 408 |
if (ret == AVERROR_EOF) { |
409 |
- av_dlog(avctx, "EOF sink_idx:%d\n", i); |
|
409 |
+ ff_dlog(avctx, "EOF sink_idx:%d\n", i); |
|
410 | 410 |
lavfi->sink_eof[i] = 1; |
411 | 411 |
continue; |
412 | 412 |
} else if (ret < 0) |
413 | 413 |
return ret; |
414 | 414 |
d = av_rescale_q_rnd(frame->pts, tb, AV_TIME_BASE_Q, AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX); |
415 |
- av_dlog(avctx, "sink_idx:%d time:%f\n", i, d); |
|
415 |
+ ff_dlog(avctx, "sink_idx:%d time:%f\n", i, d); |
|
416 | 416 |
av_frame_unref(frame); |
417 | 417 |
|
418 | 418 |
if (d < min_pts) { |
... | ... |
@@ -423,7 +424,7 @@ static int lavfi_read_packet(AVFormatContext *avctx, AVPacket *pkt) |
423 | 423 |
if (min_pts == DBL_MAX) |
424 | 424 |
return AVERROR_EOF; |
425 | 425 |
|
426 |
- av_dlog(avctx, "min_pts_sink_idx:%i\n", min_pts_sink_idx); |
|
426 |
+ ff_dlog(avctx, "min_pts_sink_idx:%i\n", min_pts_sink_idx); |
|
427 | 427 |
|
428 | 428 |
av_buffersink_get_frame_flags(lavfi->sinks[min_pts_sink_idx], frame, 0); |
429 | 429 |
stream_idx = lavfi->sink_stream_map[min_pts_sink_idx]; |
... | ... |
@@ -25,6 +25,7 @@ |
25 | 25 |
#include "config.h" |
26 | 26 |
#include "libavutil/rational.h" |
27 | 27 |
#include "libavutil/imgutils.h" |
28 |
+#include "libavutil/internal.h" |
|
28 | 29 |
#include "libavutil/log.h" |
29 | 30 |
#include "libavutil/opt.h" |
30 | 31 |
#include "libavformat/internal.h" |
... | ... |
@@ -151,7 +152,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) |
151 | 151 |
ioctl(video_fd, VIDIOCSAUDIO, &audio); |
152 | 152 |
|
153 | 153 |
ioctl(video_fd, VIDIOCGPICT, &pict); |
154 |
- av_dlog(s1, "v4l: colour=%d hue=%d brightness=%d constrast=%d whiteness=%d\n", |
|
154 |
+ ff_dlog(s1, "v4l: colour=%d hue=%d brightness=%d constrast=%d whiteness=%d\n", |
|
155 | 155 |
pict.colour, pict.hue, pict.brightness, pict.contrast, pict.whiteness); |
156 | 156 |
/* try to choose a suitable video format */ |
157 | 157 |
pict.palette = desired_palette; |
... | ... |
@@ -35,6 +35,7 @@ |
35 | 35 |
#include "libavutil/avassert.h" |
36 | 36 |
#include "libavutil/opt.h" |
37 | 37 |
#include "libavutil/imgutils.h" |
38 |
+#include "libavutil/internal.h" |
|
38 | 39 |
#include "libavutil/timestamp.h" |
39 | 40 |
#include "libavformat/avformat.h" |
40 | 41 |
#include "audio.h" |
... | ... |
@@ -536,7 +537,7 @@ static int movie_push_frame(AVFilterContext *ctx, unsigned out_id) |
536 | 536 |
} |
537 | 537 |
|
538 | 538 |
frame->pts = av_frame_get_best_effort_timestamp(frame); |
539 |
- av_dlog(ctx, "movie_push_frame(): file:'%s' %s\n", movie->file_name, |
|
539 |
+ ff_dlog(ctx, "movie_push_frame(): file:'%s' %s\n", movie->file_name, |
|
540 | 540 |
describe_frame_to_str((char[1024]){0}, 1024, frame, frame_type, outlink)); |
541 | 541 |
|
542 | 542 |
if (st->st->codec->codec_type == AVMEDIA_TYPE_VIDEO) { |
... | ... |
@@ -28,6 +28,7 @@ |
28 | 28 |
*/ |
29 | 29 |
|
30 | 30 |
#include "libavutil/common.h" |
31 |
+#include "libavutil/internal.h" |
|
31 | 32 |
#include "libavutil/opt.h" |
32 | 33 |
#include "libavutil/pixdesc.h" |
33 | 34 |
|
... | ... |
@@ -168,7 +169,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic) |
168 | 168 |
|
169 | 169 |
#ifdef DEBUG |
170 | 170 |
for (x = 0; x < 256; x++) |
171 |
- av_dlog(ctx, "in[%d]: %u\n", x, histeq->in_histogram[x]); |
|
171 |
+ ff_dlog(ctx, "in[%d]: %u\n", x, histeq->in_histogram[x]); |
|
172 | 172 |
#endif |
173 | 173 |
|
174 | 174 |
/* Calculate the lookup table. */ |
... | ... |
@@ -244,7 +245,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic) |
244 | 244 |
} |
245 | 245 |
#ifdef DEBUG |
246 | 246 |
for (x = 0; x < 256; x++) |
247 |
- av_dlog(ctx, "out[%d]: %u\n", x, histeq->out_histogram[x]); |
|
247 |
+ ff_dlog(ctx, "out[%d]: %u\n", x, histeq->out_histogram[x]); |
|
248 | 248 |
#endif |
249 | 249 |
|
250 | 250 |
av_frame_free(&inpic); |
... | ... |
@@ -24,6 +24,7 @@ |
24 | 24 |
*/ |
25 | 25 |
|
26 | 26 |
#include "libavutil/avassert.h" |
27 |
+#include "libavutil/internal.h" |
|
27 | 28 |
#include "libavutil/opt.h" |
28 | 29 |
#include "libavutil/qsort.h" |
29 | 30 |
#include "avfilter.h" |
... | ... |
@@ -347,7 +348,7 @@ static AVFrame *get_palette_frame(AVFilterContext *ctx) |
347 | 347 |
if (rr >= gr && rr >= br) longest = 0; |
348 | 348 |
if (gr >= rr && gr >= br) longest = 1; // prefer green again |
349 | 349 |
|
350 |
- av_dlog(ctx, "box #%02X [%6d..%-6d] (%6d) w:%-6"PRIu64" ranges:[%2x %2x %2x] sort by %c (already sorted:%c) ", |
|
350 |
+ ff_dlog(ctx, "box #%02X [%6d..%-6d] (%6d) w:%-6"PRIu64" ranges:[%2x %2x %2x] sort by %c (already sorted:%c) ", |
|
351 | 351 |
box_id, box->start, box->start + box->len - 1, box->len, box_weight, |
352 | 352 |
rr, gr, br, "rgb"[longest], box->sorted_by == longest ? 'y':'n'); |
353 | 353 |
|
... | ... |
@@ -368,7 +369,7 @@ static AVFrame *get_palette_frame(AVFilterContext *ctx) |
368 | 368 |
if (box_weight > median) |
369 | 369 |
break; |
370 | 370 |
} |
371 |
- av_dlog(ctx, "split @ i=%-6d with w=%-6"PRIu64" (target=%6"PRIu64")\n", i, box_weight, median); |
|
371 |
+ ff_dlog(ctx, "split @ i=%-6d with w=%-6"PRIu64" (target=%6"PRIu64")\n", i, box_weight, median); |
|
372 | 372 |
split_box(s, box, i); |
373 | 373 |
|
374 | 374 |
box_id = get_next_box_id_to_split(s); |
... | ... |
@@ -24,6 +24,7 @@ |
24 | 24 |
*/ |
25 | 25 |
|
26 | 26 |
#include "libavutil/bprint.h" |
27 |
+#include "libavutil/internal.h" |
|
27 | 28 |
#include "libavutil/opt.h" |
28 | 29 |
#include "libavutil/qsort.h" |
29 | 30 |
#include "dualinput.h" |
... | ... |
@@ -875,7 +876,7 @@ static AVFrame *apply_palette(AVFilterLink *inlink, AVFrame *in) |
875 | 875 |
return NULL; |
876 | 876 |
} |
877 | 877 |
|
878 |
- av_dlog(ctx, "%dx%d rect: (%d;%d) -> (%d,%d) [area:%dx%d]\n", |
|
878 |
+ ff_dlog(ctx, "%dx%d rect: (%d;%d) -> (%d,%d) [area:%dx%d]\n", |
|
879 | 879 |
w, h, x, y, x+w, y+h, in->width, in->height); |
880 | 880 |
|
881 | 881 |
if (s->set_frame(s, out, in, x, y, w, h) < 0) { |
... | ... |
@@ -26,6 +26,7 @@ |
26 | 26 |
/* #define DEBUG */ |
27 | 27 |
|
28 | 28 |
#include "libavutil/file.h" |
29 |
+#include "libavutil/internal.h" |
|
29 | 30 |
#include "libavutil/lfg.h" |
30 | 31 |
#include "libavutil/opt.h" |
31 | 32 |
#include "libavutil/parseutils.h" |
... | ... |
@@ -249,7 +250,7 @@ static void evolve(AVFilterContext *ctx) |
249 | 249 |
v|= i+1 < cellauto->w ? prev_row[i+1] : 0; |
250 | 250 |
} |
251 | 251 |
row[i] = !!(cellauto->rule & (1<<v)); |
252 |
- av_dlog(ctx, "i:%d context:%c%c%c -> cell:%d\n", i, |
|
252 |
+ ff_dlog(ctx, "i:%d context:%c%c%c -> cell:%d\n", i, |
|
253 | 253 |
v&4?'@':' ', v&2?'@':' ', v&1?'@':' ', row[i]); |
254 | 254 |
} |
255 | 255 |
|
... | ... |
@@ -26,6 +26,7 @@ |
26 | 26 |
/* #define DEBUG */ |
27 | 27 |
|
28 | 28 |
#include "libavutil/file.h" |
29 |
+#include "libavutil/internal.h" |
|
29 | 30 |
#include "libavutil/intreadwrite.h" |
30 | 31 |
#include "libavutil/lfg.h" |
31 | 32 |
#include "libavutil/opt.h" |
... | ... |
@@ -334,7 +335,7 @@ static void evolve(AVFilterContext *ctx) |
334 | 334 |
if (alive) *newbuf = ALIVE_CELL; // new cell is alive |
335 | 335 |
else if (cell) *newbuf = cell - 1; // new cell is dead and in the process of mold |
336 | 336 |
else *newbuf = 0; // new cell is definitely dead |
337 |
- av_dlog(ctx, "i:%d j:%d live_neighbors:%d cell:%d -> cell:%d\n", i, j, n, cell, *newbuf); |
|
337 |
+ ff_dlog(ctx, "i:%d j:%d live_neighbors:%d cell:%d -> cell:%d\n", i, j, n, cell, *newbuf); |
|
338 | 338 |
newbuf++; |
339 | 339 |
} |
340 | 340 |
} |
... | ... |
@@ -29,6 +29,7 @@ |
29 | 29 |
#include "mpegts.h" |
30 | 30 |
#include "libavformat/avlanguage.h" |
31 | 31 |
#include "libavutil/avstring.h" |
32 |
+#include "libavutil/internal.h" |
|
32 | 33 |
#include "libavutil/intreadwrite.h" |
33 | 34 |
#include "libavutil/dict.h" |
34 | 35 |
#include "libavutil/avassert.h" |
... | ... |
@@ -618,7 +619,7 @@ static int write_skip_frames(AVFormatContext *s, int stream_index, int64_t dts) |
618 | 618 |
AVIStream *avist = s->streams[stream_index]->priv_data; |
619 | 619 |
AVCodecContext *enc = s->streams[stream_index]->codec; |
620 | 620 |
|
621 |
- av_dlog(s, "dts:%s packet_count:%d stream_index:%d\n", av_ts2str(dts), avist->packet_count, stream_index); |
|
621 |
+ ff_dlog(s, "dts:%s packet_count:%d stream_index:%d\n", av_ts2str(dts), avist->packet_count, stream_index); |
|
622 | 622 |
while (enc->block_align == 0 && dts != AV_NOPTS_VALUE && |
623 | 623 |
dts > avist->packet_count && enc->codec_id != AV_CODEC_ID_XSUB && avist->packet_count) { |
624 | 624 |
AVPacket empty_packet; |
... | ... |
@@ -633,7 +634,7 @@ static int write_skip_frames(AVFormatContext *s, int stream_index, int64_t dts) |
633 | 633 |
empty_packet.data = NULL; |
634 | 634 |
empty_packet.stream_index = stream_index; |
635 | 635 |
avi_write_packet(s, &empty_packet); |
636 |
- av_dlog(s, "dup dts:%s packet_count:%d\n", av_ts2str(dts), avist->packet_count); |
|
636 |
+ ff_dlog(s, "dup dts:%s packet_count:%d\n", av_ts2str(dts), avist->packet_count); |
|
637 | 637 |
} |
638 | 638 |
|
639 | 639 |
return 0; |
... | ... |
@@ -21,6 +21,7 @@ |
21 | 21 |
|
22 | 22 |
#include <stdint.h> |
23 | 23 |
|
24 |
+#include "libavutil/internal.h" |
|
24 | 25 |
#include "libavutil/intreadwrite.h" |
25 | 26 |
#include "libavutil/intfloat.h" |
26 | 27 |
#include "libavutil/opt.h" |
... | ... |
@@ -160,7 +161,7 @@ static int64_t ffm_seek1(AVFormatContext *s, int64_t pos1) |
160 | 160 |
|
161 | 161 |
pos = FFMIN(pos1, ffm->file_size - FFM_PACKET_SIZE); |
162 | 162 |
pos = FFMAX(pos, FFM_PACKET_SIZE); |
163 |
- av_dlog(s, "seek to %"PRIx64" -> %"PRIx64"\n", pos1, pos); |
|
163 |
+ ff_dlog(s, "seek to %"PRIx64" -> %"PRIx64"\n", pos1, pos); |
|
164 | 164 |
return avio_seek(pb, pos, SEEK_SET); |
165 | 165 |
} |
166 | 166 |
|
... | ... |
@@ -172,7 +173,7 @@ static int64_t get_dts(AVFormatContext *s, int64_t pos) |
172 | 172 |
ffm_seek1(s, pos); |
173 | 173 |
avio_skip(pb, 4); |
174 | 174 |
dts = avio_rb64(pb); |
175 |
- av_dlog(s, "dts=%0.6f\n", dts / 1000000.0); |
|
175 |
+ ff_dlog(s, "dts=%0.6f\n", dts / 1000000.0); |
|
176 | 176 |
return dts; |
177 | 177 |
} |
178 | 178 |
|
... | ... |
@@ -608,7 +609,7 @@ static int ffm_read_packet(AVFormatContext *s, AVPacket *pkt) |
608 | 608 |
if ((ret = ffm_is_avail_data(s, FRAME_HEADER_SIZE+4)) < 0) |
609 | 609 |
return ret; |
610 | 610 |
|
611 |
- av_dlog(s, "pos=%08"PRIx64" spos=%"PRIx64", write_index=%"PRIx64" size=%"PRIx64"\n", |
|
611 |
+ ff_dlog(s, "pos=%08"PRIx64" spos=%"PRIx64", write_index=%"PRIx64" size=%"PRIx64"\n", |
|
612 | 612 |
avio_tell(s->pb), s->pb->pos, ffm->write_index, ffm->file_size); |
613 | 613 |
if (ffm_read_data(s, ffm->header, FRAME_HEADER_SIZE, 1) != |
614 | 614 |
FRAME_HEADER_SIZE) |
... | ... |
@@ -666,7 +667,7 @@ static int ffm_seek(AVFormatContext *s, int stream_index, int64_t wanted_pts, in |
666 | 666 |
int64_t pts_min, pts_max, pts; |
667 | 667 |
double pos1; |
668 | 668 |
|
669 |
- av_dlog(s, "wanted_pts=%0.6f\n", wanted_pts / 1000000.0); |
|
669 |
+ ff_dlog(s, "wanted_pts=%0.6f\n", wanted_pts / 1000000.0); |
|
670 | 670 |
/* find the position using linear interpolation (better than |
671 | 671 |
dichotomy in typical cases) */ |
672 | 672 |
if (ffm->write_index && ffm->write_index < ffm->file_size) { |
... | ... |
@@ -19,6 +19,7 @@ |
19 | 19 |
*/ |
20 | 20 |
|
21 | 21 |
#include "libavutil/avstring.h" |
22 |
+#include "libavutil/internal.h" |
|
22 | 23 |
#include "libavutil/parseutils.h" |
23 | 24 |
#include "avformat.h" |
24 | 25 |
#include "internal.h" |
... | ... |
@@ -200,7 +201,7 @@ static int ftp_send_command(FTPContext *s, const char *command, |
200 | 200 |
{ |
201 | 201 |
int err; |
202 | 202 |
|
203 |
- av_dlog(s, "%s", command); |
|
203 |
+ ff_dlog(s, "%s", command); |
|
204 | 204 |
|
205 | 205 |
if (response) |
206 | 206 |
*response = NULL; |
... | ... |
@@ -283,7 +284,7 @@ static int ftp_passive_mode_epsv(FTPContext *s) |
283 | 283 |
end[-1] = '\0'; |
284 | 284 |
|
285 | 285 |
s->server_data_port = atoi(start); |
286 |
- av_dlog(s, "Server data port: %d\n", s->server_data_port); |
|
286 |
+ ff_dlog(s, "Server data port: %d\n", s->server_data_port); |
|
287 | 287 |
|
288 | 288 |
av_free(res); |
289 | 289 |
return 0; |
... | ... |
@@ -329,7 +330,7 @@ static int ftp_passive_mode(FTPContext *s) |
329 | 329 |
start = av_strtok(end, ",", &end); |
330 | 330 |
if (!start) goto fail; |
331 | 331 |
s->server_data_port += atoi(start); |
332 |
- av_dlog(s, "Server data port: %d\n", s->server_data_port); |
|
332 |
+ ff_dlog(s, "Server data port: %d\n", s->server_data_port); |
|
333 | 333 |
|
334 | 334 |
av_free(res); |
335 | 335 |
return 0; |
... | ... |
@@ -698,7 +699,7 @@ static int ftp_open(URLContext *h, const char *url, int flags) |
698 | 698 |
FTPContext *s = h->priv_data; |
699 | 699 |
int err; |
700 | 700 |
|
701 |
- av_dlog(h, "ftp protocol open\n"); |
|
701 |
+ ff_dlog(h, "ftp protocol open\n"); |
|
702 | 702 |
|
703 | 703 |
if ((err = ftp_connect(h, url)) < 0) |
704 | 704 |
goto fail; |
... | ... |
@@ -726,7 +727,7 @@ static int64_t ftp_seek(URLContext *h, int64_t pos, int whence) |
726 | 726 |
int err; |
727 | 727 |
int64_t new_pos, fake_pos; |
728 | 728 |
|
729 |
- av_dlog(h, "ftp protocol seek %"PRId64" %d\n", pos, whence); |
|
729 |
+ ff_dlog(h, "ftp protocol seek %"PRId64" %d\n", pos, whence); |
|
730 | 730 |
|
731 | 731 |
switch(whence) { |
732 | 732 |
case AVSEEK_SIZE: |
... | ... |
@@ -768,7 +769,7 @@ static int ftp_read(URLContext *h, unsigned char *buf, int size) |
768 | 768 |
FTPContext *s = h->priv_data; |
769 | 769 |
int read, err, retry_done = 0; |
770 | 770 |
|
771 |
- av_dlog(h, "ftp protocol read %d bytes\n", size); |
|
771 |
+ ff_dlog(h, "ftp protocol read %d bytes\n", size); |
|
772 | 772 |
retry: |
773 | 773 |
if (s->state == DISCONNECTED) { |
774 | 774 |
/* optimization */ |
... | ... |
@@ -826,7 +827,7 @@ static int ftp_write(URLContext *h, const unsigned char *buf, int size) |
826 | 826 |
FTPContext *s = h->priv_data; |
827 | 827 |
int written; |
828 | 828 |
|
829 |
- av_dlog(h, "ftp protocol write %d bytes\n", size); |
|
829 |
+ ff_dlog(h, "ftp protocol write %d bytes\n", size); |
|
830 | 830 |
|
831 | 831 |
if (s->state == DISCONNECTED) { |
832 | 832 |
if ((err = ftp_connect_data_connection(h)) < 0) |
... | ... |
@@ -853,7 +854,7 @@ static int ftp_close(URLContext *h) |
853 | 853 |
{ |
854 | 854 |
FTPContext *s = h->priv_data; |
855 | 855 |
|
856 |
- av_dlog(h, "ftp protocol close\n"); |
|
856 |
+ ff_dlog(h, "ftp protocol close\n"); |
|
857 | 857 |
|
858 | 858 |
ftp_close_both_connections(s); |
859 | 859 |
av_freep(&s->user); |
... | ... |
@@ -869,7 +870,7 @@ static int ftp_get_file_handle(URLContext *h) |
869 | 869 |
{ |
870 | 870 |
FTPContext *s = h->priv_data; |
871 | 871 |
|
872 |
- av_dlog(h, "ftp protocol get_file_handle\n"); |
|
872 |
+ ff_dlog(h, "ftp protocol get_file_handle\n"); |
|
873 | 873 |
|
874 | 874 |
if (s->conn_data) |
875 | 875 |
return ffurl_get_file_handle(s->conn_data); |
... | ... |
@@ -881,7 +882,7 @@ static int ftp_shutdown(URLContext *h, int flags) |
881 | 881 |
{ |
882 | 882 |
FTPContext *s = h->priv_data; |
883 | 883 |
|
884 |
- av_dlog(h, "ftp protocol shutdown\n"); |
|
884 |
+ ff_dlog(h, "ftp protocol shutdown\n"); |
|
885 | 885 |
|
886 | 886 |
if (s->conn_data) |
887 | 887 |
return ffurl_shutdown(s->conn_data, flags); |
... | ... |
@@ -933,7 +934,7 @@ static int ftp_parse_entry_nlst(char *line, AVIODirEntry *next) |
933 | 933 |
static int ftp_parse_entry_mlsd(char *mlsd, AVIODirEntry *next) |
934 | 934 |
{ |
935 | 935 |
char *fact, *value; |
936 |
- av_dlog(NULL, "%s\n", mlsd); |
|
936 |
+ ff_dlog(NULL, "%s\n", mlsd); |
|
937 | 937 |
while(fact = av_strtok(mlsd, ";", &mlsd)) { |
938 | 938 |
if (fact[0] == ' ') { |
939 | 939 |
next->name = av_strdup(&fact[1]); |
... | ... |
@@ -29,6 +29,7 @@ |
29 | 29 |
|
30 | 30 |
#include "libavutil/attributes.h" |
31 | 31 |
#include "libavutil/channel_layout.h" |
32 |
+#include "libavutil/internal.h" |
|
32 | 33 |
#include "libavutil/intreadwrite.h" |
33 | 34 |
#include "libavutil/intfloat.h" |
34 | 35 |
#include "libavutil/mathematics.h" |
... | ... |
@@ -1393,7 +1394,7 @@ static int mov_read_aclr(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
1393 | 1393 |
av_log(c, AV_LOG_WARNING, "ignored unknown aclr value (%d)\n", range_value); |
1394 | 1394 |
break; |
1395 | 1395 |
} |
1396 |
- av_dlog(c, "color_range: %d\n", codec->color_range); |
|
1396 |
+ ff_dlog(c, "color_range: %d\n", codec->color_range); |
|
1397 | 1397 |
} else { |
1398 | 1398 |
/* For some reason the whole atom was not added to the extradata */ |
1399 | 1399 |
av_log(c, AV_LOG_ERROR, "aclr not decoded - incomplete atom\n"); |
... | ... |
@@ -21,6 +21,7 @@ |
21 | 21 |
|
22 | 22 |
#include "libavutil/buffer.h" |
23 | 23 |
#include "libavutil/crc.h" |
24 |
+#include "libavutil/internal.h" |
|
24 | 25 |
#include "libavutil/intreadwrite.h" |
25 | 26 |
#include "libavutil/log.h" |
26 | 27 |
#include "libavutil/dict.h" |
... | ... |
@@ -2458,7 +2459,7 @@ static int mpegts_probe(AVProbeData *p) |
2458 | 2458 |
sumscore = sumscore * CHECK_COUNT / check_count; |
2459 | 2459 |
maxscore = maxscore * CHECK_COUNT / CHECK_BLOCK; |
2460 | 2460 |
|
2461 |
- av_dlog(0, "TS score: %d %d\n", sumscore, maxscore); |
|
2461 |
+ ff_dlog(0, "TS score: %d %d\n", sumscore, maxscore); |
|
2462 | 2462 |
|
2463 | 2463 |
if (sumscore > 6) return AVPROBE_SCORE_MAX + sumscore - CHECK_COUNT; |
2464 | 2464 |
else if (maxscore > 6) return AVPROBE_SCORE_MAX/2 + sumscore - CHECK_COUNT; |
... | ... |
@@ -33,6 +33,7 @@ |
33 | 33 |
#include "internal.h" |
34 | 34 |
|
35 | 35 |
#include "libavutil/avassert.h" |
36 |
+#include "libavutil/internal.h" |
|
36 | 37 |
#include "libavutil/log.h" |
37 | 38 |
#include "libavutil/opt.h" |
38 | 39 |
#include "libavutil/avstring.h" |
... | ... |
@@ -774,7 +775,7 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt) |
774 | 774 |
} |
775 | 775 |
} |
776 | 776 |
|
777 |
- av_dlog(s, "packet stream:%d pts:%s pts_time:%s duration_time:%s is_key:%d frame:%d\n", |
|
777 |
+ ff_dlog(s, "packet stream:%d pts:%s pts_time:%s duration_time:%s is_key:%d frame:%d\n", |
|
778 | 778 |
pkt->stream_index, av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &st->time_base), |
779 | 779 |
av_ts2timestr(pkt->duration, &st->time_base), |
780 | 780 |
pkt->flags & AV_PKT_FLAG_KEY, |
... | ... |
@@ -23,6 +23,7 @@ |
23 | 23 |
#include "libavutil/avassert.h" |
24 | 24 |
#include "libavutil/channel_layout.h" |
25 | 25 |
#include "libavutil/imgutils.h" |
26 |
+#include "libavutil/internal.h" |
|
26 | 27 |
#include "libavutil/intreadwrite.h" |
27 | 28 |
#include "libavcodec/get_bits.h" |
28 | 29 |
#include "swf.h" |
... | ... |
@@ -342,7 +343,7 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt) |
342 | 342 |
|
343 | 343 |
out_len = colormapsize * colormapbpp + linesize * height; |
344 | 344 |
|
345 |
- av_dlog(s, "bitmap: ch=%d fmt=%d %dx%d (linesize=%d) len=%d->%ld pal=%d\n", |
|
345 |
+ ff_dlog(s, "bitmap: ch=%d fmt=%d %dx%d (linesize=%d) len=%d->%ld pal=%d\n", |
|
346 | 346 |
ch_id, bmp_fmt, width, height, linesize, len, out_len, colormapsize); |
347 | 347 |
|
348 | 348 |
zbuf = av_malloc(len); |