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
1f95fb58
Commit
1f95fb58
authored
May 30, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yuv4mpeg: complain and exit if a non-rawvideo stream is selected
The yuv4mpeg muxer will crash otherwise.
parent
ac41f3b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
yuv4mpeg.c
libavformat/yuv4mpeg.c
+6
-0
No files found.
libavformat/yuv4mpeg.c
View file @
1f95fb58
...
...
@@ -154,6 +154,12 @@ static int yuv4_write_header(AVFormatContext *s)
if
(
s
->
nb_streams
!=
1
)
return
AVERROR
(
EIO
);
if
(
s
->
streams
[
0
]
->
codec
->
codec_id
!=
CODEC_ID_RAWVIDEO
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"A non-rawvideo stream was selected, but yuv4mpeg only handles rawvideo streams
\n
"
);
return
AVERROR
(
EINVAL
);
}
if
(
s
->
streams
[
0
]
->
codec
->
pix_fmt
==
PIX_FMT_YUV411P
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Warning: generating rarely used 4:1:1 YUV stream, some mjpegtools might not work.
\n
"
);
}
...
...
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