Replace dprintf with av_dlog
dprintf clashes with POSIX.1-2008
This commit is contained in:
@@ -749,7 +749,7 @@ static void dvbsub_parse_pixel_data_block(AVCodecContext *avctx, DVBSubObjectDis
|
||||
0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff};
|
||||
uint8_t *map_table;
|
||||
|
||||
dprintf(avctx, "DVB pixel block size %d, %s field:\n", buf_size,
|
||||
av_dlog(avctx, "DVB pixel block size %d, %s field:\n", buf_size,
|
||||
top_bottom ? "bottom" : "top");
|
||||
|
||||
#ifdef DEBUG_PACKET_CONTENTS
|
||||
@@ -984,7 +984,7 @@ static void dvbsub_parse_clut_segment(AVCodecContext *avctx,
|
||||
YUV_TO_RGB1_CCIR(cb, cr);
|
||||
YUV_TO_RGB2_CCIR(r, g, b, y);
|
||||
|
||||
dprintf(avctx, "clut %d := (%d,%d,%d,%d)\n", entry_id, r, g, b, alpha);
|
||||
av_dlog(avctx, "clut %d := (%d,%d,%d,%d)\n", entry_id, r, g, b, alpha);
|
||||
|
||||
if (depth & 0x80)
|
||||
clut->clut4[entry_id] = RGBA(r,g,b,255 - alpha);
|
||||
@@ -1060,11 +1060,11 @@ static void dvbsub_parse_region_segment(AVCodecContext *avctx,
|
||||
region->bgcolor = (((*buf++) >> 2) & 3);
|
||||
}
|
||||
|
||||
dprintf(avctx, "Region %d, (%dx%d)\n", region_id, region->width, region->height);
|
||||
av_dlog(avctx, "Region %d, (%dx%d)\n", region_id, region->width, region->height);
|
||||
|
||||
if (fill) {
|
||||
memset(region->pbuf, region->bgcolor, region->buf_size);
|
||||
dprintf(avctx, "Fill region (%d)\n", region->bgcolor);
|
||||
av_dlog(avctx, "Fill region (%d)\n", region->bgcolor);
|
||||
}
|
||||
|
||||
delete_region_display_list(ctx, region);
|
||||
@@ -1125,7 +1125,7 @@ static void dvbsub_parse_page_segment(AVCodecContext *avctx,
|
||||
ctx->time_out = *buf++;
|
||||
page_state = ((*buf++) >> 2) & 3;
|
||||
|
||||
dprintf(avctx, "Page time out %ds, state %d\n", ctx->time_out, page_state);
|
||||
av_dlog(avctx, "Page time out %ds, state %d\n", ctx->time_out, page_state);
|
||||
|
||||
if (page_state == 2) {
|
||||
delete_state(ctx);
|
||||
@@ -1163,7 +1163,7 @@ static void dvbsub_parse_page_segment(AVCodecContext *avctx,
|
||||
ctx->display_list = display;
|
||||
ctx->display_list_size++;
|
||||
|
||||
dprintf(avctx, "Region %d, (%d,%d)\n", region_id, display->x_pos, display->y_pos);
|
||||
av_dlog(avctx, "Region %d, (%d,%d)\n", region_id, display->x_pos, display->y_pos);
|
||||
}
|
||||
|
||||
while (tmp_display_list) {
|
||||
@@ -1461,7 +1461,7 @@ static int dvbsub_decode(AVCodecContext *avctx,
|
||||
*data_size = dvbsub_display_end_segment(avctx, p, segment_length, sub);
|
||||
break;
|
||||
default:
|
||||
dprintf(avctx, "Subtitling segment type 0x%x, page id %d, length %d\n",
|
||||
av_dlog(avctx, "Subtitling segment type 0x%x, page id %d, length %d\n",
|
||||
segment_type, page_id, segment_length);
|
||||
break;
|
||||
}
|
||||
@@ -1471,7 +1471,7 @@ static int dvbsub_decode(AVCodecContext *avctx,
|
||||
}
|
||||
|
||||
if (p != p_end) {
|
||||
dprintf(avctx, "Junk at end of packet\n");
|
||||
av_dlog(avctx, "Junk at end of packet\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user