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
7f125c3e
Commit
7f125c3e
authored
Mar 10, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move frame_pred_frame_dct check elsewhere.
Fixes issue2405
parent
2ee45361
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
mpeg12.c
libavcodec/mpeg12.c
+8
-1
No files found.
libavcodec/mpeg12.c
View file @
7f125c3e
...
@@ -406,6 +406,10 @@ static int mpeg_decode_mb(MpegEncContext *s,
...
@@ -406,6 +406,10 @@ static int mpeg_decode_mb(MpegEncContext *s,
}
}
break
;
break
;
case
MT_FIELD
:
case
MT_FIELD
:
if
(
s
->
progressive_sequence
){
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"MT_FIELD in progressive_sequence
\n
"
);
return
-
1
;
}
s
->
mv_type
=
MV_TYPE_FIELD
;
s
->
mv_type
=
MV_TYPE_FIELD
;
if
(
s
->
picture_structure
==
PICT_FRAME
)
{
if
(
s
->
picture_structure
==
PICT_FRAME
)
{
mb_type
|=
MB_TYPE_16x8
|
MB_TYPE_INTERLACED
;
mb_type
|=
MB_TYPE_16x8
|
MB_TYPE_INTERLACED
;
...
@@ -443,6 +447,10 @@ static int mpeg_decode_mb(MpegEncContext *s,
...
@@ -443,6 +447,10 @@ static int mpeg_decode_mb(MpegEncContext *s,
}
}
break
;
break
;
case
MT_DMV
:
case
MT_DMV
:
if
(
s
->
progressive_sequence
){
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"MT_DMV in progressive_sequence
\n
"
);
return
-
1
;
}
s
->
mv_type
=
MV_TYPE_DMV
;
s
->
mv_type
=
MV_TYPE_DMV
;
for
(
i
=
0
;
i
<
2
;
i
++
)
{
for
(
i
=
0
;
i
<
2
;
i
++
)
{
if
(
USES_LIST
(
mb_type
,
i
))
{
if
(
USES_LIST
(
mb_type
,
i
))
{
...
@@ -1587,7 +1595,6 @@ static void mpeg_decode_picture_coding_extension(Mpeg1Context *s1)
...
@@ -1587,7 +1595,6 @@ static void mpeg_decode_picture_coding_extension(Mpeg1Context *s1)
if
(
s
->
progressive_sequence
&&
!
s
->
frame_pred_frame_dct
){
if
(
s
->
progressive_sequence
&&
!
s
->
frame_pred_frame_dct
){
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"invalid frame_pred_frame_dct
\n
"
);
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"invalid frame_pred_frame_dct
\n
"
);
s
->
frame_pred_frame_dct
=
1
;
}
}
if
(
s
->
picture_structure
==
PICT_FRAME
){
if
(
s
->
picture_structure
==
PICT_FRAME
){
...
...
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