Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
4cc40c05
Commit
4cc40c05
authored
Jun 08, 2023
by
Tomas Härdin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/riffenc: Fix msrle support on Windows 95
parent
2cac3fd7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
riffenc.c
libavformat/riffenc.c
+4
-2
No files found.
libavformat/riffenc.c
View file @
4cc40c05
...
...
@@ -239,14 +239,16 @@ void ff_put_bmp_header(AVIOContext *pb, AVCodecParameters *par,
/* depth */
avio_wl16
(
pb
,
par
->
bits_per_coded_sample
?
par
->
bits_per_coded_sample
:
24
);
/* compression type */
avio_wl32
(
pb
,
par
->
codec_tag
);
// MSRLE compatibility with Media Player 3.1 and Windows 95
avio_wl32
(
pb
,
par
->
codec_id
==
AV_CODEC_ID_MSRLE
?
1
:
par
->
codec_tag
);
avio_wl32
(
pb
,
(
par
->
width
*
par
->
height
*
(
par
->
bits_per_coded_sample
?
par
->
bits_per_coded_sample
:
24
)
+
7
)
/
8
);
avio_wl32
(
pb
,
0
);
avio_wl32
(
pb
,
0
);
/* Number of color indices in the color table that are used.
* A value of 0 means 2^biBitCount indices, but this doesn't work
* with Windows Media Player and files containing xxpc chunks. */
avio_wl32
(
pb
,
pal_avi
?
1
<<
par
->
bits_per_coded_sample
:
0
);
// MSRLE on Windows 95 requires a zero here
avio_wl32
(
pb
,
pal_avi
&&
par
->
codec_id
!=
AV_CODEC_ID_MSRLE
?
1
<<
par
->
bits_per_coded_sample
:
0
);
avio_wl32
(
pb
,
0
);
if
(
!
ignore_extradata
)
{
...
...
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