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
612b5cbb
Commit
612b5cbb
authored
Apr 05, 2008
by
Baptiste Coudurier
Browse files
better error message
Originally committed as revision 12756 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
4764fdc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
libavformat/mov.c
libavformat/mov.c
+6
-4
No files found.
libavformat/mov.c
View file @
612b5cbb
...
...
@@ -1709,10 +1709,12 @@ static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap)
atom
.
size
=
INT64_MAX
;
/* check MOV header */
err
=
mov_read_default
(
mov
,
pb
,
atom
);
if
(
err
<
0
||
(
!
mov
->
found_moov
&&
!
mov
->
found_mdat
))
{
av_log
(
s
,
AV_LOG_ERROR
,
"mov: header not found !!! (err:%d, moov:%d, mdat:%d) pos:%"
PRId64
"
\n
"
,
err
,
mov
->
found_moov
,
mov
->
found_mdat
,
url_ftell
(
pb
));
if
((
err
=
mov_read_default
(
mov
,
pb
,
atom
))
<
0
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"error reading header: %d
\n
"
,
err
);
return
err
;
}
if
(
!
mov
->
found_moov
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"moov atom not found
\n
"
);
return
-
1
;
}
dprintf
(
mov
->
fc
,
"on_parse_exit_offset=%d
\n
"
,
(
int
)
url_ftell
(
pb
));
...
...
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