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
f0d50500
Commit
f0d50500
authored
Sep 10, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: fix bytes written statistics.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b3b27b63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ffmpeg.c
ffmpeg.c
+4
-4
No files found.
ffmpeg.c
View file @
f0d50500
...
...
@@ -639,9 +639,9 @@ static void do_audio_out(AVFormatContext *s, OutputStream *ost,
av_ts2str
(
pkt
.
dts
),
av_ts2timestr
(
pkt
.
dts
,
&
ost
->
st
->
time_base
));
}
audio_size
+=
pkt
.
size
;
write_frame
(
s
,
&
pkt
,
ost
);
audio_size
+=
pkt
.
size
;
av_free_packet
(
&
pkt
);
}
}
...
...
@@ -752,8 +752,8 @@ static void do_subtitle_out(AVFormatContext *s,
else
pkt
.
pts
+=
90
*
sub
->
end_display_time
;
}
write_frame
(
s
,
&
pkt
,
ost
);
subtitle_size
+=
pkt
.
size
;
write_frame
(
s
,
&
pkt
,
ost
);
}
}
...
...
@@ -847,8 +847,8 @@ static void do_video_out(AVFormatContext *s,
pkt
.
pts
=
av_rescale_q
(
in_picture
->
pts
,
enc
->
time_base
,
ost
->
st
->
time_base
);
pkt
.
flags
|=
AV_PKT_FLAG_KEY
;
write_frame
(
s
,
&
pkt
,
ost
);
video_size
+=
pkt
.
size
;
write_frame
(
s
,
&
pkt
,
ost
);
}
else
{
int
got_packet
;
AVFrame
big_picture
;
...
...
@@ -898,9 +898,9 @@ static void do_video_out(AVFormatContext *s,
av_ts2str
(
pkt
.
dts
),
av_ts2timestr
(
pkt
.
dts
,
&
ost
->
st
->
time_base
));
}
write_frame
(
s
,
&
pkt
,
ost
);
frame_size
=
pkt
.
size
;
video_size
+=
pkt
.
size
;
write_frame
(
s
,
&
pkt
,
ost
);
av_free_packet
(
&
pkt
);
/* if two pass, output log */
...
...
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