Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
d017ed87
Commit
d017ed87
authored
Nov 28, 2015
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avi: Use the correct data type
avio_tell returns an int64_t.
parent
7f57ea14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
avidec.c
libavformat/avidec.c
+3
-2
No files found.
libavformat/avidec.c
View file @
d017ed87
...
...
@@ -367,6 +367,7 @@ static int avi_read_header(AVFormatContext *s)
int
avih_width
=
0
,
avih_height
=
0
;
int
amv_file_format
=
0
;
uint64_t
list_end
=
0
;
int64_t
pos
;
int
ret
;
avi
->
stream_index
=
-
1
;
...
...
@@ -759,12 +760,12 @@ static int avi_read_header(AVFormatContext *s)
}
break
;
case
MKTAG
(
'i'
,
'n'
,
'd'
,
'x'
):
i
=
avio_tell
(
pb
);
pos
=
avio_tell
(
pb
);
if
(
pb
->
seekable
&&
!
(
s
->
flags
&
AVFMT_FLAG_IGNIDX
)
&&
read_braindead_odml_indx
(
s
,
0
)
<
0
&&
(
s
->
error_recognition
&
AV_EF_EXPLODE
))
goto
fail
;
avio_seek
(
pb
,
i
+
size
,
SEEK_SET
);
avio_seek
(
pb
,
pos
+
size
,
SEEK_SET
);
break
;
case
MKTAG
(
'v'
,
'p'
,
'r'
,
'p'
):
if
(
stream_index
<
(
unsigned
)
s
->
nb_streams
&&
size
>
9
*
4
)
{
...
...
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