Revision dfd2a005 libavcodec/dvbsubdec.c

View differences:

libavcodec/dvbsubdec.c
749 749
                         0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff};
750 750
    uint8_t *map_table;
751 751

  
752
    dprintf(avctx, "DVB pixel block size %d, %s field:\n", buf_size,
752
    av_dlog(avctx, "DVB pixel block size %d, %s field:\n", buf_size,
753 753
            top_bottom ? "bottom" : "top");
754 754

  
755 755
#ifdef DEBUG_PACKET_CONTENTS
......
984 984
        YUV_TO_RGB1_CCIR(cb, cr);
985 985
        YUV_TO_RGB2_CCIR(r, g, b, y);
986 986

  
987
        dprintf(avctx, "clut %d := (%d,%d,%d,%d)\n", entry_id, r, g, b, alpha);
987
        av_dlog(avctx, "clut %d := (%d,%d,%d,%d)\n", entry_id, r, g, b, alpha);
988 988

  
989 989
        if (depth & 0x80)
990 990
            clut->clut4[entry_id] = RGBA(r,g,b,255 - alpha);
......
1060 1060
            region->bgcolor = (((*buf++) >> 2) & 3);
1061 1061
    }
1062 1062

  
1063
    dprintf(avctx, "Region %d, (%dx%d)\n", region_id, region->width, region->height);
1063
    av_dlog(avctx, "Region %d, (%dx%d)\n", region_id, region->width, region->height);
1064 1064

  
1065 1065
    if (fill) {
1066 1066
        memset(region->pbuf, region->bgcolor, region->buf_size);
1067
        dprintf(avctx, "Fill region (%d)\n", region->bgcolor);
1067
        av_dlog(avctx, "Fill region (%d)\n", region->bgcolor);
1068 1068
    }
1069 1069

  
1070 1070
    delete_region_display_list(ctx, region);
......
1125 1125
    ctx->time_out = *buf++;
1126 1126
    page_state = ((*buf++) >> 2) & 3;
1127 1127

  
1128
    dprintf(avctx, "Page time out %ds, state %d\n", ctx->time_out, page_state);
1128
    av_dlog(avctx, "Page time out %ds, state %d\n", ctx->time_out, page_state);
1129 1129

  
1130 1130
    if (page_state == 2) {
1131 1131
        delete_state(ctx);
......
1163 1163
        ctx->display_list = display;
1164 1164
        ctx->display_list_size++;
1165 1165

  
1166
        dprintf(avctx, "Region %d, (%d,%d)\n", region_id, display->x_pos, display->y_pos);
1166
        av_dlog(avctx, "Region %d, (%d,%d)\n", region_id, display->x_pos, display->y_pos);
1167 1167
    }
1168 1168

  
1169 1169
    while (tmp_display_list) {
......
1461 1461
                *data_size = dvbsub_display_end_segment(avctx, p, segment_length, sub);
1462 1462
                break;
1463 1463
            default:
1464
                dprintf(avctx, "Subtitling segment type 0x%x, page id %d, length %d\n",
1464
                av_dlog(avctx, "Subtitling segment type 0x%x, page id %d, length %d\n",
1465 1465
                        segment_type, page_id, segment_length);
1466 1466
                break;
1467 1467
            }
......
1471 1471
    }
1472 1472

  
1473 1473
    if (p != p_end) {
1474
        dprintf(avctx, "Junk at end of packet\n");
1474
        av_dlog(avctx, "Junk at end of packet\n");
1475 1475
        return -1;
1476 1476
    }
1477 1477

  

Also available in: Unified diff