Revision dfd2a005 libavformat/asfdec.c

View differences:

libavformat/asfdec.c
57 57
#ifdef DEBUG
58 58
#define PRINT_IF_GUID(g,cmp) \
59 59
if (!ff_guidcmp(g, &cmp)) \
60
    dprintf(NULL, "(GUID: %s) ", #cmp)
60
    av_dlog(NULL, "(GUID: %s) ", #cmp)
61 61

  
62 62
static void print_guid(const ff_asf_guid *g)
63 63
{
......
87 87
    else PRINT_IF_GUID(g, stream_bitrate_guid);
88 88
    else PRINT_IF_GUID(g, ff_asf_language_guid);
89 89
    else
90
        dprintf(NULL, "(GUID: unknown) ");
90
        av_dlog(NULL, "(GUID: unknown) ");
91 91
    for(i=0;i<16;i++)
92
        dprintf(NULL, " 0x%02x,", (*g)[i]);
93
    dprintf(NULL, "}\n");
92
        av_dlog(NULL, " 0x%02x,", (*g)[i]);
93
    av_dlog(NULL, "}\n");
94 94
}
95 95
#undef PRINT_IF_GUID
96 96
#else
......
177 177
        int ret;
178 178
        ff_get_guid(pb, &g);
179 179
        gsize = get_le64(pb);
180
        dprintf(s, "%08"PRIx64": ", gpos);
180
        av_dlog(s, "%08"PRIx64": ", gpos);
181 181
        print_guid(&g);
182
        dprintf(s, "  size=0x%"PRIx64"\n", gsize);
182
        av_dlog(s, "  size=0x%"PRIx64"\n", gsize);
183 183
        if (!ff_guidcmp(&g, &ff_asf_data_header)) {
184 184
            asf->data_object_offset = url_ftell(pb);
185 185
            // if not streaming, gsize is not unlimited (how?), and there is enough space in the file..
......
704 704
    if (packet_length < asf->hdr.min_pktsize)
705 705
        padsize += asf->hdr.min_pktsize - packet_length;
706 706
    asf->packet_padsize = padsize;
707
    dprintf(s, "packet: size=%d padsize=%d  left=%d\n", s->packet_size, asf->packet_padsize, asf->packet_size_left);
707
    av_dlog(s, "packet: size=%d padsize=%d  left=%d\n", s->packet_size, asf->packet_padsize, asf->packet_size_left);
708 708
    return 0;
709 709
}
710 710

  

Also available in: Unified diff