Revision 3491866a

View differences:

libavformat/mov.c
266 266
            a.type = get_le32(pb);
267 267
        }
268 268
        total_size += 8;
269
        dprintf(c->fc, "type: %08x  %.4s  sz: %"PRIx64"  %"PRIx64"   %"PRIx64"\n",
270
                a.type, (char*)&a.type, a.size, atom.size, total_size);
269
        dprintf(c->fc, "type: %08x '%.4s' parent:'%.4s' sz: %"PRId64" %"PRId64" %"PRId64"\n",
270
                a.type, (char*)&a.type, (char*)&atom.type, a.size, total_size, atom.size);
271 271
        if (a.size == 1) { /* 64 bit extended size */
272 272
            a.size = get_be64(pb) - 8;
273 273
            total_size += 8;
......
960 960
        //Parsing Sample description table
961 961
        enum CodecID id;
962 962
        int dref_id = 1;
963
        MOVAtom a = { 0 };
963
        MOVAtom a = { AV_RL32("stsd") };
964 964
        int64_t start_pos = url_ftell(pb);
965 965
        int size = get_be32(pb); /* size */
966 966
        uint32_t format = get_le32(pb); /* data format */
......
2366 2366
    MOVContext *mov = s->priv_data;
2367 2367
    ByteIOContext *pb = s->pb;
2368 2368
    int err;
2369
    MOVAtom atom = { 0 };
2369
    MOVAtom atom = { AV_RL32("root") };
2370 2370

  
2371 2371
    mov->fc = s;
2372 2372
    /* .mov and .mp4 aren't streamable anyway (only progressive download if moov is before mdat) */
......
2430 2430
    if (!sample) {
2431 2431
        mov->found_mdat = 0;
2432 2432
        if (!url_is_streamed(s->pb) ||
2433
            mov_read_default(mov, s->pb, (MOVAtom){ 0, INT64_MAX }) < 0 ||
2433
            mov_read_default(mov, s->pb, (MOVAtom){ AV_RL32("root"), INT64_MAX }) < 0 ||
2434 2434
            url_feof(s->pb))
2435 2435
            return AVERROR_EOF;
2436 2436
        dprintf(s, "read fragments, offset 0x%llx\n", url_ftell(s->pb));

Also available in: Unified diff