Fix muxing mjpeg in swf.
This commit is contained in:
parent
371e221d63
commit
7923490712
@ -498,8 +498,10 @@ static int swf_write_trailer(AVFormatContext *s)
|
|||||||
put_le32(pb, file_size);
|
put_le32(pb, file_size);
|
||||||
url_fseek(pb, swf->duration_pos, SEEK_SET);
|
url_fseek(pb, swf->duration_pos, SEEK_SET);
|
||||||
put_le16(pb, swf->video_frame_number);
|
put_le16(pb, swf->video_frame_number);
|
||||||
|
if (swf->vframes_pos) {
|
||||||
url_fseek(pb, swf->vframes_pos, SEEK_SET);
|
url_fseek(pb, swf->vframes_pos, SEEK_SET);
|
||||||
put_le16(pb, swf->video_frame_number);
|
put_le16(pb, swf->video_frame_number);
|
||||||
|
}
|
||||||
url_fseek(pb, file_size, SEEK_SET);
|
url_fseek(pb, file_size, SEEK_SET);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user