Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
0daf6014
Commit
0daf6014
authored
Jan 03, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/movenc: fix DELAY_MOOV
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
00f9e51a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
movenc.c
libavformat/movenc.c
+3
-1
No files found.
libavformat/movenc.c
View file @
0daf6014
...
@@ -2407,10 +2407,11 @@ static int mov_write_trak_tag(AVIOContext *pb, MOVMuxContext *mov,
...
@@ -2407,10 +2407,11 @@ static int mov_write_trak_tag(AVIOContext *pb, MOVMuxContext *mov,
{
{
int64_t
pos
=
avio_tell
(
pb
);
int64_t
pos
=
avio_tell
(
pb
);
int
entry_backup
=
track
->
entry
;
int
entry_backup
=
track
->
entry
;
int
chunk_backup
=
track
->
chunkCount
;
/* If we want to have an empty moov, but some samples already have been
/* If we want to have an empty moov, but some samples already have been
* buffered (delay_moov), pretend that no samples have been written yet. */
* buffered (delay_moov), pretend that no samples have been written yet. */
if
(
mov
->
flags
&
FF_MOV_FLAG_EMPTY_MOOV
)
if
(
mov
->
flags
&
FF_MOV_FLAG_EMPTY_MOOV
)
track
->
entry
=
0
;
track
->
chunkCount
=
track
->
entry
=
0
;
avio_wb32
(
pb
,
0
);
/* size */
avio_wb32
(
pb
,
0
);
/* size */
ffio_wfourcc
(
pb
,
"trak"
);
ffio_wfourcc
(
pb
,
"trak"
);
...
@@ -2446,6 +2447,7 @@ static int mov_write_trak_tag(AVIOContext *pb, MOVMuxContext *mov,
...
@@ -2446,6 +2447,7 @@ static int mov_write_trak_tag(AVIOContext *pb, MOVMuxContext *mov,
}
}
mov_write_track_udta_tag
(
pb
,
mov
,
st
);
mov_write_track_udta_tag
(
pb
,
mov
,
st
);
track
->
entry
=
entry_backup
;
track
->
entry
=
entry_backup
;
track
->
chunkCount
=
chunk_backup
;
return
update_size
(
pb
,
pos
);
return
update_size
(
pb
,
pos
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment