Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
3ba90d9e
Commit
3ba90d9e
authored
May 20, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: cosmetics to reduce difference to qatar by about 90 lines
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c53326af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
79 deletions
+82
-79
ffmpeg.c
ffmpeg.c
+82
-79
No files found.
ffmpeg.c
View file @
3ba90d9e
...
...
@@ -1959,6 +1959,7 @@ static void do_video_out(AVFormatContext *s, OutputStream *ost,
AVFrame
*
in_picture
,
float
quality
)
{
int
nb_frames
,
i
,
ret
,
format_video_sync
;
AVPacket
pkt
;
AVCodecContext
*
enc
;
double
sync_ipts
,
delta
;
double
duration
=
0
;
...
...
@@ -2015,9 +2016,8 @@ static void do_video_out(AVFormatContext *s, OutputStream *ost,
av_log
(
NULL
,
AV_LOG_VERBOSE
,
"*** %d dup!
\n
"
,
nb_frames
-
1
);
}
/* duplicates frame if needed */
for
(
i
=
0
;
i
<
nb_frames
;
i
++
)
{
AVPacket
pkt
;
duplicate_frame:
av_init_packet
(
&
pkt
);
pkt
.
data
=
NULL
;
pkt
.
size
=
0
;
...
...
@@ -2103,7 +2103,10 @@ static void do_video_out(AVFormatContext *s, OutputStream *ost,
* flush, we need to limit them here, before they go into encoder.
*/
ost
->
frame_number
++
;
}
if
(
--
nb_frames
)
goto
duplicate_frame
;
if
(
vstats_filename
&&
frame_size
)
do_video_stats
(
output_files
[
ost
->
file_index
]
->
ctx
,
ost
,
frame_size
);
}
...
...
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