Revision dfd2a005 libavcodec/dvdsubdec.c

View differences:

libavcodec/dvdsubdec.c
190 190
    while (cmd_pos > 0 && cmd_pos < buf_size - 2 - offset_size) {
191 191
        date = AV_RB16(buf + cmd_pos);
192 192
        next_cmd_pos = READ_OFFSET(buf + cmd_pos + 2);
193
        dprintf(NULL, "cmd_pos=0x%04x next=0x%04x date=%d\n",
193
        av_dlog(NULL, "cmd_pos=0x%04x next=0x%04x date=%d\n",
194 194
                cmd_pos, next_cmd_pos, date);
195 195
        pos = cmd_pos + 2 + offset_size;
196 196
        offset1 = -1;
......
198 198
        x1 = y1 = x2 = y2 = 0;
199 199
        while (pos < buf_size) {
200 200
            cmd = buf[pos++];
201
            dprintf(NULL, "cmd=%02x\n", cmd);
201
            av_dlog(NULL, "cmd=%02x\n", cmd);
202 202
            switch(cmd) {
203 203
            case 0x00:
204 204
                /* menu subpicture */
......
231 231
                alpha[1] = buf[pos + 1] >> 4;
232 232
                alpha[0] = buf[pos + 1] & 0x0f;
233 233
                pos += 2;
234
            dprintf(NULL, "alpha=%x%x%x%x\n", alpha[0],alpha[1],alpha[2],alpha[3]);
234
            av_dlog(NULL, "alpha=%x%x%x%x\n", alpha[0],alpha[1],alpha[2],alpha[3]);
235 235
                break;
236 236
            case 0x05:
237 237
            case 0x85:
......
243 243
                y2 = ((buf[pos + 4] & 0x0f) << 8) | buf[pos + 5];
244 244
                if (cmd & 0x80)
245 245
                    is_8bit = 1;
246
                dprintf(NULL, "x1=%d x2=%d y1=%d y2=%d\n", x1, x2, y1, y2);
246
                av_dlog(NULL, "x1=%d x2=%d y1=%d y2=%d\n", x1, x2, y1, y2);
247 247
                pos += 6;
248 248
                break;
249 249
            case 0x06:
......
251 251
                    goto fail;
252 252
                offset1 = AV_RB16(buf + pos);
253 253
                offset2 = AV_RB16(buf + pos + 2);
254
                dprintf(NULL, "offset1=0x%04x offset2=0x%04x\n", offset1, offset2);
254
                av_dlog(NULL, "offset1=0x%04x offset2=0x%04x\n", offset1, offset2);
255 255
                pos += 4;
256 256
                break;
257 257
            case 0x86:
......
259 259
                    goto fail;
260 260
                offset1 = AV_RB32(buf + pos);
261 261
                offset2 = AV_RB32(buf + pos + 4);
262
                dprintf(NULL, "offset1=0x%04x offset2=0x%04x\n", offset1, offset2);
262
                av_dlog(NULL, "offset1=0x%04x offset2=0x%04x\n", offset1, offset2);
263 263
                pos += 8;
264 264
                break;
265 265

  
......
282 282
            case 0xff:
283 283
                goto the_end;
284 284
            default:
285
                dprintf(NULL, "unrecognised subpicture command 0x%x\n", cmd);
285
                av_dlog(NULL, "unrecognised subpicture command 0x%x\n", cmd);
286 286
                goto the_end;
287 287
            }
288 288
        }
......
475 475
        goto no_subtitle;
476 476

  
477 477
#if defined(DEBUG)
478
    dprintf(NULL, "start=%d ms end =%d ms\n",
478
    av_dlog(NULL, "start=%d ms end =%d ms\n",
479 479
            sub->start_display_time,
480 480
            sub->end_display_time);
481 481
    ppm_save("/tmp/a.ppm", sub->rects[0]->pict.data[0],

Also available in: Unified diff