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
99e07a44
Commit
99e07a44
authored
Feb 22, 2011
by
anatoly
Committed by
Michael Niedermayer
May 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash of interlaced MPEG2 decoding
parent
a18eff49
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
mpegvideo.c
libavcodec/mpegvideo.c
+7
-2
No files found.
libavcodec/mpegvideo.c
View file @
99e07a44
...
...
@@ -1094,8 +1094,13 @@ int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
s->pict_type, s->dropable);*/
if
(
s
->
codec_id
!=
CODEC_ID_H264
){
if
((
s
->
last_picture_ptr
==
NULL
||
s
->
last_picture_ptr
->
data
[
0
]
==
NULL
)
&&
s
->
pict_type
!=
AV_PICTURE_TYPE_I
){
if
((
s
->
last_picture_ptr
==
NULL
||
s
->
last_picture_ptr
->
data
[
0
]
==
NULL
)
&&
(
s
->
pict_type
!=
AV_PICTURE_TYPE_I
||
s
->
picture_structure
!=
PICT_FRAME
)){
if
(
s
->
pict_type
!=
AV_PICTURE_TYPE_I
)
av_log
(
avctx
,
AV_LOG_ERROR
,
"warning: first frame is no keyframe
\n
"
);
else
if
(
s
->
picture_structure
!=
PICT_FRAME
)
av_log
(
avctx
,
AV_LOG_INFO
,
"allocate dummy last picture for field based first keyframe
\n
"
);
/* Allocate a dummy frame */
i
=
ff_find_unused_picture
(
s
,
0
);
s
->
last_picture_ptr
=
&
s
->
picture
[
i
];
...
...
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