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
c5dcb3d4
Commit
c5dcb3d4
authored
Mar 15, 2011
by
Stefano Sabatini
Committed by
Michael Niedermayer
Mar 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: make av_interleave_packet() return meaningful error codes
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
77f21ce4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
utils.c
libavformat/utils.c
+4
-3
No files found.
libavformat/utils.c
View file @
c5dcb3d4
...
...
@@ -3091,6 +3091,7 @@ static int av_interleave_packet(AVFormatContext *s, AVPacket *out, AVPacket *in,
int
av_interleaved_write_frame
(
AVFormatContext
*
s
,
AVPacket
*
pkt
){
AVStream
*
st
=
s
->
streams
[
pkt
->
stream_index
];
int
ret
;
//FIXME/XXX/HACK drop zero sized packets
if
(
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_AUDIO
&&
pkt
->
size
==
0
)
...
...
@@ -3098,11 +3099,11 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt){
av_dlog
(
s
,
"av_interleaved_write_frame size:%d dts:%"
PRId64
" pts:%"
PRId64
"
\n
"
,
pkt
->
size
,
pkt
->
dts
,
pkt
->
pts
);
if
(
compute_pkt_fields2
(
s
,
st
,
pkt
)
<
0
&&
!
(
s
->
oformat
->
flags
&
AVFMT_NOTIMESTAMPS
))
return
-
1
;
if
(
(
ret
=
compute_pkt_fields2
(
s
,
st
,
pkt
)
)
<
0
&&
!
(
s
->
oformat
->
flags
&
AVFMT_NOTIMESTAMPS
))
return
ret
;
if
(
pkt
->
dts
==
AV_NOPTS_VALUE
&&
!
(
s
->
oformat
->
flags
&
AVFMT_NOTIMESTAMPS
))
return
-
1
;
return
AVERROR
(
EINVAL
)
;
for
(;;){
AVPacket
opkt
;
...
...
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