Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
bf0d7da7
Commit
bf0d7da7
authored
Mar 12, 2014
by
Vittorio Giovara
Browse files
ljpeg: check color_range
parent
2183432e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
libavcodec/ljpegenc.c
libavcodec/ljpegenc.c
+2
-1
No files found.
libavcodec/ljpegenc.c
View file @
bf0d7da7
...
...
@@ -266,7 +266,8 @@ static av_cold int ljpeg_encode_init(AVCodecContext *avctx)
if
((
avctx
->
pix_fmt
==
AV_PIX_FMT_YUV420P
||
avctx
->
pix_fmt
==
AV_PIX_FMT_YUV422P
||
avctx
->
pix_fmt
==
AV_PIX_FMT_YUV444P
)
&&
avctx
->
pix_fmt
==
AV_PIX_FMT_YUV444P
||
avctx
->
color_range
==
AVCOL_RANGE_MPEG
)
&&
avctx
->
strict_std_compliance
>
FF_COMPLIANCE_UNOFFICIAL
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Limited range YUV is non-standard, set strict_std_compliance to "
...
...
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