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
67c734ea
Commit
67c734ea
authored
Dec 29, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flvdec: Disable metadatacreator "MEGA" hack
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
df0bff66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
flvdec.c
libavformat/flvdec.c
+0
-12
No files found.
libavformat/flvdec.c
View file @
67c734ea
...
@@ -143,18 +143,6 @@ static int parse_keyframes_index(AVFormatContext *s, AVIOContext *ioc, AVStream
...
@@ -143,18 +143,6 @@ static int parse_keyframes_index(AVFormatContext *s, AVIOContext *ioc, AVStream
int64_t
*
filepositions
=
NULL
;
int64_t
*
filepositions
=
NULL
;
int
ret
=
AVERROR
(
ENOSYS
);
int
ret
=
AVERROR
(
ENOSYS
);
int64_t
initial_pos
=
avio_tell
(
ioc
);
int64_t
initial_pos
=
avio_tell
(
ioc
);
AVDictionaryEntry
*
creator
=
av_dict_get
(
s
->
metadata
,
"metadatacreator"
,
NULL
,
0
);
if
(
creator
&&
!
strcmp
(
creator
->
value
,
"MEGA"
))
{
/* Files with this metadatacreator tag seem to have filepositions
* pointing at the 4 trailer bytes of the previous packet,
* which isn't the norm (nor what we expect here, nor what
* jwplayer + lighttpd expect, nor what flvtool2 produces).
* Just ignore the index in this case, instead of risking trying
* to adjust it to something that might or might not work. */
return
0
;
}
if
(
vstream
->
nb_index_entries
>
0
){
if
(
vstream
->
nb_index_entries
>
0
){
av_log
(
s
,
AV_LOG_WARNING
,
"Skiping duplicate index
\n
"
);
av_log
(
s
,
AV_LOG_WARNING
,
"Skiping duplicate index
\n
"
);
...
...
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