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
817a3de9
Commit
817a3de9
authored
Jul 23, 2008
by
Luca Abeni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reindent after last commit
Originally committed as revision 14346 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
fb34e75d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
output_example.c
output_example.c
+2
-2
No files found.
output_example.c
View file @
817a3de9
...
...
@@ -157,7 +157,7 @@ static void write_audio_frame(AVFormatContext *oc, AVStream *st)
pkt
.
size
=
avcodec_encode_audio
(
c
,
audio_outbuf
,
audio_outbuf_size
,
samples
);
if
(
c
->
coded_frame
->
pts
!=
AV_NOPTS_VALUE
)
pkt
.
pts
=
av_rescale_q
(
c
->
coded_frame
->
pts
,
c
->
time_base
,
st
->
time_base
);
pkt
.
pts
=
av_rescale_q
(
c
->
coded_frame
->
pts
,
c
->
time_base
,
st
->
time_base
);
pkt
.
flags
|=
PKT_FLAG_KEY
;
pkt
.
stream_index
=
st
->
index
;
pkt
.
data
=
audio_outbuf
;
...
...
@@ -382,7 +382,7 @@ static void write_video_frame(AVFormatContext *oc, AVStream *st)
av_init_packet
(
&
pkt
);
if
(
c
->
coded_frame
->
pts
!=
AV_NOPTS_VALUE
)
pkt
.
pts
=
av_rescale_q
(
c
->
coded_frame
->
pts
,
c
->
time_base
,
st
->
time_base
);
pkt
.
pts
=
av_rescale_q
(
c
->
coded_frame
->
pts
,
c
->
time_base
,
st
->
time_base
);
if
(
c
->
coded_frame
->
key_frame
)
pkt
.
flags
|=
PKT_FLAG_KEY
;
pkt
.
stream_index
=
st
->
index
;
...
...
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