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
6e230912
Commit
6e230912
authored
21 years ago
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check input pix_fmt
Originally committed as revision 2104 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
59c673d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
mpegvideo.c
libavcodec/mpegvideo.c
+5
-1
No files found.
libavcodec/mpegvideo.c
View file @
6e230912
...
...
@@ -1364,7 +1364,6 @@ static int load_input_picture(MpegEncContext *s, AVFrame *pic_arg){
// empty
}
else
{
int
h_chroma_shift
,
v_chroma_shift
;
avcodec_get_chroma_sub_sample
(
s
->
avctx
->
pix_fmt
,
&
h_chroma_shift
,
&
v_chroma_shift
);
for
(
i
=
0
;
i
<
3
;
i
++
){
...
...
@@ -1548,6 +1547,11 @@ int MPV_encode_picture(AVCodecContext *avctx,
AVFrame
*
pic_arg
=
data
;
int
i
;
if
(
avctx
->
pix_fmt
!=
PIX_FMT_YUV420P
){
fprintf
(
stderr
,
"this codec supports only YUV420P
\n
"
);
return
-
1
;
}
init_put_bits
(
&
s
->
pb
,
buf
,
buf_size
,
NULL
,
NULL
);
s
->
picture_in_gop_number
++
;
...
...
This diff is collapsed.
Click to expand it.
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