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
e0b176ad
Commit
e0b176ad
authored
Dec 10, 2009
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix RGB LJPEG encoding.
Originally committed as revision 20788 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
65214b62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+6
-0
No files found.
libavcodec/mpegvideo_enc.c
View file @
e0b176ad
...
...
@@ -531,12 +531,18 @@ av_cold int MPV_encode_init(AVCodecContext *avctx)
case
CODEC_ID_MJPEG
:
s
->
out_format
=
FMT_MJPEG
;
s
->
intra_only
=
1
;
/* force intra only for jpeg */
if
(
avctx
->
codec
->
id
==
CODEC_ID_MJPEG
){
s
->
mjpeg_vsample
[
0
]
=
2
;
s
->
mjpeg_vsample
[
1
]
=
2
>>
chroma_v_shift
;
s
->
mjpeg_vsample
[
2
]
=
2
>>
chroma_v_shift
;
s
->
mjpeg_hsample
[
0
]
=
2
;
s
->
mjpeg_hsample
[
1
]
=
2
>>
chroma_h_shift
;
s
->
mjpeg_hsample
[
2
]
=
2
>>
chroma_h_shift
;
}
else
{
s
->
mjpeg_vsample
[
0
]
=
s
->
mjpeg_hsample
[
0
]
=
s
->
mjpeg_vsample
[
1
]
=
s
->
mjpeg_hsample
[
1
]
=
s
->
mjpeg_vsample
[
2
]
=
s
->
mjpeg_hsample
[
2
]
=
1
;
}
if
(
!
(
CONFIG_MJPEG_ENCODER
||
CONFIG_LJPEG_ENCODER
)
||
ff_mjpeg_encode_init
(
s
)
<
0
)
return
-
1
;
...
...
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