Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
a079ed63
Commit
a079ed63
authored
May 10, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avidec: Enable full parsing for potencoder mpeg1/2
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
63e8fc4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
avidec.c
libavformat/avidec.c
+11
-0
No files found.
libavformat/avidec.c
View file @
a079ed63
...
...
@@ -365,6 +365,7 @@ static int avi_read_header(AVFormatContext *s)
int
amv_file_format
=
0
;
uint64_t
list_end
=
0
;
int
ret
;
AVDictionaryEntry
*
dict_entry
;
avi
->
stream_index
=
-
1
;
...
...
@@ -802,6 +803,16 @@ static int avi_read_header(AVFormatContext *s)
avi_load_index
(
s
);
avi
->
index_loaded
|=
1
;
avi
->
non_interleaved
|=
guess_ni_flag
(
s
)
|
(
s
->
flags
&
AVFMT_FLAG_SORT_DTS
);
dict_entry
=
av_dict_get
(
s
->
metadata
,
"ISFT"
,
NULL
,
0
);
if
(
dict_entry
&&
!
strcmp
(
dict_entry
->
value
,
"PotEncoder"
))
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
{
AVStream
*
st
=
s
->
streams
[
i
];
if
(
st
->
codec
->
codec_id
==
AV_CODEC_ID_MPEG1VIDEO
||
st
->
codec
->
codec_id
==
AV_CODEC_ID_MPEG2VIDEO
)
st
->
need_parsing
=
AVSTREAM_PARSE_FULL
;
}
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
){
AVStream
*
st
=
s
->
streams
[
i
];
if
(
st
->
nb_index_entries
)
...
...
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