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
63c03ea9
Commit
63c03ea9
authored
Apr 14, 2014
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix writing RGB 5:5:5 rawvideo into avi.
WMP expects bits per pixel to be set to 16 for RGB 5:5:5 rawvideo.
parent
9468e9e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
avienc.c
libavformat/avienc.c
+6
-0
No files found.
libavformat/avienc.c
View file @
63c03ea9
...
@@ -308,6 +308,12 @@ static int avi_write_header(AVFormatContext *s)
...
@@ -308,6 +308,12 @@ static int avi_write_header(AVFormatContext *s)
if
(
stream
->
codec_id
!=
AV_CODEC_ID_XSUB
)
if
(
stream
->
codec_id
!=
AV_CODEC_ID_XSUB
)
break
;
break
;
case
AVMEDIA_TYPE_VIDEO
:
case
AVMEDIA_TYPE_VIDEO
:
/* WMP expects RGB 5:5:5 rawvideo in avi to have bpp set to 16. */
if
(
!
stream
->
codec_tag
&&
stream
->
codec_id
==
AV_CODEC_ID_RAWVIDEO
&&
stream
->
pix_fmt
==
AV_PIX_FMT_RGB555LE
&&
stream
->
bits_per_coded_sample
==
15
)
stream
->
bits_per_coded_sample
=
16
;
ff_put_bmp_header
(
pb
,
stream
,
ff_codec_bmp_tags
,
0
,
0
);
ff_put_bmp_header
(
pb
,
stream
,
ff_codec_bmp_tags
,
0
,
0
);
pix_fmt
=
avpriv_find_pix_fmt
(
avpriv_pix_fmt_bps_avi
,
pix_fmt
=
avpriv_find_pix_fmt
(
avpriv_pix_fmt_bps_avi
,
stream
->
bits_per_coded_sample
);
stream
->
bits_per_coded_sample
);
...
...
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