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
008f0851
Commit
008f0851
authored
Jul 24, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vcr2 cleanup
Originally committed as revision 2081 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6b17c988
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
mpeg12.c
libavcodec/mpeg12.c
+3
-5
No files found.
libavcodec/mpeg12.c
View file @
008f0851
...
...
@@ -929,7 +929,7 @@ static int mpeg_decode_mb(MpegEncContext *s,
case
I_TYPE
:
if
(
get_bits1
(
&
s
->
gb
)
==
0
)
{
if
(
get_bits1
(
&
s
->
gb
)
==
0
){
fprintf
(
"invalid mb type in I Frame at %d %d
\n
"
,
s
->
mb_x
,
s
->
mb_y
);
fprintf
(
stderr
,
"invalid mb type in I Frame at %d %d
\n
"
,
s
->
mb_x
,
s
->
mb_y
);
return
-
1
;
}
mb_type
=
MB_TYPE_QUANT
|
MB_TYPE_INTRA
;
...
...
@@ -2154,8 +2154,7 @@ static int vcr2_init_sequence(AVCodecContext *avctx)
{
Mpeg1Context
*
s1
=
avctx
->
priv_data
;
MpegEncContext
*
s
=
&
s1
->
mpeg_enc_ctx
;
int
i
,
v
,
j
;
float
aspect
;
int
i
,
v
;
/* start new mpeg1 context decoding */
s
->
out_format
=
FMT_MPEG1
;
...
...
@@ -2182,13 +2181,12 @@ static int vcr2_init_sequence(AVCodecContext *avctx)
s
->
chroma_inter_matrix
[
j
]
=
v
;
}
/* we set mpeg2 parameters so that it emulates mpeg1 */
s
->
progressive_sequence
=
1
;
s
->
progressive_frame
=
1
;
s
->
picture_structure
=
PICT_FRAME
;
s
->
frame_pred_frame_dct
=
1
;
s
->
mpeg2
=
1
;
avctx
->
sub_id
=
2
;
/* indicates mpeg
1
*/
avctx
->
sub_id
=
2
;
/* indicates mpeg
2
*/
return
0
;
}
...
...
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