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
b26497f8
Commit
b26497f8
authored
Aug 10, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/mjpegenc_common: do not ignore the color_range field
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
7a7ca3cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
mjpegenc_common.c
libavcodec/mjpegenc_common.c
+4
-3
No files found.
libavcodec/mjpegenc_common.c
View file @
b26497f8
...
...
@@ -145,9 +145,10 @@ static void jpeg_put_comments(AVCodecContext *avctx, PutBitContext *p)
AV_WB16
(
ptr
,
size
);
}
if
(
avctx
->
pix_fmt
==
AV_PIX_FMT_YUV420P
||
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_JPEG
)
||
avctx
->
color_range
==
AVCOL_RANGE_MPEG
)
{
put_marker
(
p
,
COM
);
flush_put_bits
(
p
);
ptr
=
put_bits_ptr
(
p
);
...
...
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