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
4fe8a452
Commit
4fe8a452
authored
Oct 24, 2008
by
Pascal Massimino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for >2GB flv files
Originally committed as revision 15677 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ae14f311
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
flvdec.c
libavformat/flvdec.c
+6
-5
No files found.
libavformat/flvdec.c
View file @
4fe8a452
...
...
@@ -106,7 +106,7 @@ static int amf_get_string(ByteIOContext *ioc, char *buffer, int buffsize) {
return
length
;
}
static
int
amf_parse_object
(
AVFormatContext
*
s
,
AVStream
*
astream
,
AVStream
*
vstream
,
const
char
*
key
,
unsigned
in
t
max_pos
,
int
depth
)
{
static
int
amf_parse_object
(
AVFormatContext
*
s
,
AVStream
*
astream
,
AVStream
*
vstream
,
const
char
*
key
,
int64_
t
max_pos
,
int
depth
)
{
AVCodecContext
*
acodec
,
*
vcodec
;
ByteIOContext
*
ioc
;
AMFDataType
amf_type
;
...
...
@@ -208,7 +208,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst
return
0
;
}
static
int
flv_read_metabody
(
AVFormatContext
*
s
,
unsigned
in
t
next_pos
)
{
static
int
flv_read_metabody
(
AVFormatContext
*
s
,
int64_
t
next_pos
)
{
AMFDataType
type
;
AVStream
*
stream
,
*
astream
,
*
vstream
;
ByteIOContext
*
ioc
;
...
...
@@ -296,7 +296,8 @@ static int flv_get_extradata(AVFormatContext *s, AVStream *st, int size)
static
int
flv_read_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
int
ret
,
i
,
type
,
size
,
flags
,
is_audio
,
next
,
pos
;
int
ret
,
i
,
type
,
size
,
flags
,
is_audio
;
int64_t
next
,
pos
;
unsigned
dts
;
AVStream
*
st
=
NULL
;
...
...
@@ -370,8 +371,8 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
// if not streamed and no duration from metadata then seek to end to find the duration from the timestamps
if
(
!
url_is_streamed
(
s
->
pb
)
&&
s
->
duration
==
AV_NOPTS_VALUE
){
int
size
;
const
int
pos
=
url_ftell
(
s
->
pb
);
const
int
fsize
=
url_fsize
(
s
->
pb
);
const
int
64_t
pos
=
url_ftell
(
s
->
pb
);
const
int
64_t
fsize
=
url_fsize
(
s
->
pb
);
url_fseek
(
s
->
pb
,
fsize
-
4
,
SEEK_SET
);
size
=
get_be32
(
s
->
pb
);
url_fseek
(
s
->
pb
,
fsize
-
3
-
size
,
SEEK_SET
);
...
...
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