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
c512b303
Commit
c512b303
authored
Nov 12, 2003
by
Ivan Kalvachev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideo is back
Originally committed as revision 2507 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e240a0bb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
allcodecs.c
libavcodec/allcodecs.c
+1
-0
avcodec.h
libavcodec/avcodec.h
+1
-0
mpeg12.c
libavcodec/mpeg12.c
+14
-0
No files found.
libavcodec/allcodecs.c
View file @
c512b303
...
...
@@ -102,6 +102,7 @@ void avcodec_register_all(void)
#endif
register_avcodec
(
&
mpeg1video_decoder
);
register_avcodec
(
&
mpeg2video_decoder
);
register_avcodec
(
&
mpegvideo_decoder
);
#ifdef HAVE_XVMC
register_avcodec
(
&
mpeg_xvmc_decoder
);
#endif
...
...
libavcodec/avcodec.h
View file @
c512b303
...
...
@@ -1523,6 +1523,7 @@ extern AVCodec wmv1_decoder;
extern
AVCodec
wmv2_decoder
;
extern
AVCodec
mpeg1video_decoder
;
extern
AVCodec
mpeg2video_decoder
;
extern
AVCodec
mpegvideo_decoder
;
extern
AVCodec
mpeg_xvmc_decoder
;
extern
AVCodec
h263i_decoder
;
extern
AVCodec
flv_decoder
;
...
...
libavcodec/mpeg12.c
View file @
c512b303
...
...
@@ -2655,6 +2655,20 @@ AVCodec mpeg2video_decoder = {
.
flush
=
ff_mpeg_flush
,
};
//legacy decoder
AVCodec
mpegvideo_decoder
=
{
"mpegvideo"
,
CODEC_TYPE_VIDEO
,
CODEC_ID_MPEG2VIDEO
,
sizeof
(
Mpeg1Context
),
mpeg_decode_init
,
NULL
,
mpeg_decode_end
,
mpeg_decode_frame
,
CODEC_CAP_DRAW_HORIZ_BAND
|
CODEC_CAP_DR1
|
CODEC_CAP_TRUNCATED
,
.
flush
=
ff_mpeg_flush
,
};
#ifdef HAVE_XVMC
static
int
mpeg_mc_decode_init
(
AVCodecContext
*
avctx
){
Mpeg1Context
*
s
;
...
...
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