mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
Merge commit '83548fe894cdb455cc127f754d09905b6d23c173'
* commit '83548fe894cdb455cc127f754d09905b6d23c173': lavf: fix usage of AVIOContext.seekable Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@ -500,7 +500,7 @@ static int swf_write_trailer(AVFormatContext *s)
|
||||
put_swf_end_tag(s);
|
||||
|
||||
/* patch file size and number of frames if not streamed */
|
||||
if (s->pb->seekable && video_par) {
|
||||
if ((s->pb->seekable & AVIO_SEEKABLE_NORMAL) && video_par) {
|
||||
file_size = avio_tell(pb);
|
||||
avio_seek(pb, 4, SEEK_SET);
|
||||
avio_wl32(pb, file_size);
|
||||
|
Reference in New Issue
Block a user