Revision 9b92ed76

View differences:

libavformat/swf.h
67 67
    int audio_stream_index;
68 68
    offset_t duration_pos;
69 69
    offset_t tag_pos;
70

  
70
    offset_t vframes_pos;
71 71
    int samples_per_frame;
72 72
    int sound_samples;
73 73
    int swf_frame_number;
libavformat/swfenc.c
344 344
            /* create a new video object */
345 345
            put_swf_tag(s, TAG_VIDEOSTREAM);
346 346
            put_le16(pb, VIDEO_ID);
347
            swf->vframes_pos = url_ftell(pb);
347 348
            put_le16(pb, 15000); /* hard flash player limit */
348 349
            put_le16(pb, enc->width);
349 350
            put_le16(pb, enc->height);
......
495 496
        put_le32(pb, file_size);
496 497
        url_fseek(pb, swf->duration_pos, SEEK_SET);
497 498
        put_le16(pb, swf->video_frame_number);
499
        url_fseek(pb, swf->vframes_pos, SEEK_SET);
500
        put_le16(pb, swf->video_frame_number);
498 501
        url_fseek(pb, file_size, SEEK_SET);
499 502
    }
500 503
    return 0;
tests/libav.regression.ref
12 12
447b005e527cf495ec13092e788f028d *./tests/data/b-libav.ts
13 13
471692 ./tests/data/b-libav.ts
14 14
./tests/data/b-libav.ts CRC=0xcc4948e1
15
d6fdeb9f7083cc827f9510c6c4517dc0 *./tests/data/b-libav.swf
15
1b28a16652bb8ac528b33f7478ca18b6 *./tests/data/b-libav.swf
16 16
335771 ./tests/data/b-libav.swf
17 17
./tests/data/b-libav.swf CRC=0xe14e8847
18 18
3dbacdc3fccb551f8ab54c32f648e7a8 *./tests/data/b-libav.ffm

Also available in: Unified diff