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
beb7f93b
Commit
beb7f93b
authored
Dec 26, 2019
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/img2enc: minor simplification
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
57df8839
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
img2enc.c
libavformat/img2enc.c
+4
-6
No files found.
libavformat/img2enc.c
View file @
beb7f93b
...
...
@@ -92,18 +92,16 @@ static int write_muxed_file(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt)
st
->
id
=
pkt
->
stream_index
;
fmt
->
pb
=
pb
;
if
((
ret
=
av_packet_ref
(
&
pkt2
,
pkt
))
<
0
||
(
ret
=
avcodec_parameters_copy
(
st
->
codecpar
,
par
))
<
0
||
(
ret
=
avformat_write_header
(
fmt
,
NULL
))
<
0
||
(
ret
=
av_interleaved_write_frame
(
fmt
,
&
pkt2
))
<
0
||
(
ret
=
av_write_trailer
(
fmt
))
<
0
)
{
av_packet_unref
(
&
pkt2
);
avformat_free_context
(
fmt
);
return
ret
;
}
(
ret
=
av_write_trailer
(
fmt
)))
{}
av_packet_unref
(
&
pkt2
);
avformat_free_context
(
fmt
);
return
0
;
return
ret
;
}
static
int
write_packet_pipe
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
...
...
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