Revision 9b92ed76 libavformat/swfenc.c

View differences:

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;

Also available in: Unified diff