Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
07585ffa
Commit
07585ffa
authored
Oct 27, 2012
by
Luca Barbato
Browse files
nutenc: verbosely report unsupported negative pts
Additionally use the correct error number.
parent
f174fbac
Changes
1
Hide whitespace changes
Inline
Side-by-side
libavformat/nutenc.c
View file @
07585ffa
...
...
@@ -767,8 +767,12 @@ static int nut_write_packet(AVFormatContext *s, AVPacket *pkt)
int
store_sp
=
0
;
int
ret
;
if
(
pkt
->
pts
<
0
)
return
-
1
;
if
(
pkt
->
pts
<
0
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Negative pts not supported stream %d, pts %"
PRId64
"
\n
"
,
pkt
->
stream_index
,
pkt
->
pts
);
return
AVERROR_INVALIDDATA
;
}
if
(
1LL
<<
(
20
+
3
*
nut
->
header_count
)
<=
avio_tell
(
bc
))
write_headers
(
s
,
bc
);
...
...
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