Revision dfd2a005 libavcodec/pgssubdec.c

View differences:

libavcodec/pgssubdec.c
141 141
        return -1;
142 142
    }
143 143

  
144
    dprintf(avctx, "Pixel Count = %d, Area = %d\n", pixel_count, sub->rects[0]->w * sub->rects[0]->h);
144
    av_dlog(avctx, "Pixel Count = %d, Area = %d\n", pixel_count, sub->rects[0]->w * sub->rects[0]->h);
145 145

  
146 146
    return 0;
147 147
}
......
253 253
        YUV_TO_RGB1(cb, cr);
254 254
        YUV_TO_RGB2(r, g, b, y);
255 255

  
256
        dprintf(avctx, "Color %d := (%d,%d,%d,%d)\n", color_id, r, g, b, alpha);
256
        av_dlog(avctx, "Color %d := (%d,%d,%d,%d)\n", color_id, r, g, b, alpha);
257 257

  
258 258
        /* Store color in palette */
259 259
        ctx->clut[color_id] = RGBA(r,g,b,alpha);
......
282 282
    int w = bytestream_get_be16(&buf);
283 283
    int h = bytestream_get_be16(&buf);
284 284

  
285
    dprintf(avctx, "Video Dimensions %dx%d\n",
285
    av_dlog(avctx, "Video Dimensions %dx%d\n",
286 286
            w, h);
287 287
    if (av_image_check_size(w, h, 0, avctx) >= 0)
288 288
        avcodec_set_dimensions(avctx, w, h);
......
317 317

  
318 318
    /* TODO If cropping, cropping_x, cropping_y, cropping_width, cropping_height (all 2 bytes).*/
319 319

  
320
    dprintf(avctx, "Subtitle Placement x=%d, y=%d\n", x, y);
320
    av_dlog(avctx, "Subtitle Placement x=%d, y=%d\n", x, y);
321 321

  
322 322
    if (x > avctx->width || y > avctx->height) {
323 323
        av_log(avctx, AV_LOG_ERROR, "Subtitle out of video bounds. x = %d, y = %d, video width = %d, video height = %d.\n",
......
433 433
        segment_type   = bytestream_get_byte(&buf);
434 434
        segment_length = bytestream_get_be16(&buf);
435 435

  
436
        dprintf(avctx, "Segment Length %d, Segment Type %x\n", segment_length, segment_type);
436
        av_dlog(avctx, "Segment Length %d, Segment Type %x\n", segment_length, segment_type);
437 437

  
438 438
        if (segment_type != DISPLAY_SEGMENT && segment_length > buf_end - buf)
439 439
            break;

Also available in: Unified diff