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
502d105f
Commit
502d105f
authored
Apr 08, 2002
by
Philip Gladstone
Committed by
Zdenek Kabelac
Apr 08, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* patch by Philip Gladstone
Originally committed as revision 390 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
bc657ac3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
avienc.c
libav/avienc.c
+3
-3
No files found.
libav/avienc.c
View file @
502d105f
...
...
@@ -94,7 +94,7 @@ unsigned int codec_get_bmp_tag(int id)
}
/* BITMAPINFOHEADER header */
void
put_bmp_header
(
ByteIOContext
*
pb
,
AVCodecContext
*
enc
)
void
put_bmp_header
(
ByteIOContext
*
pb
,
AVCodecContext
*
enc
,
CodecTag
*
tags
)
{
put_le32
(
pb
,
40
);
/* size */
put_le32
(
pb
,
enc
->
width
);
...
...
@@ -102,7 +102,7 @@ void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc)
put_le16
(
pb
,
1
);
/* planes */
put_le16
(
pb
,
24
);
/* depth */
/* compression type */
put_le32
(
pb
,
codec_get_
bmp_tag
(
enc
->
codec_id
));
put_le32
(
pb
,
codec_get_
tag
(
tags
,
enc
->
codec_id
));
put_le32
(
pb
,
enc
->
width
*
enc
->
height
*
3
);
put_le32
(
pb
,
0
);
put_le32
(
pb
,
0
);
...
...
@@ -251,7 +251,7 @@ static int avi_write_header(AVFormatContext *s)
strf
=
start_tag
(
pb
,
"strf"
);
switch
(
stream
->
codec_type
)
{
case
CODEC_TYPE_VIDEO
:
put_bmp_header
(
pb
,
stream
);
put_bmp_header
(
pb
,
stream
,
codec_bmp_tags
);
break
;
case
CODEC_TYPE_AUDIO
:
if
(
put_wav_header
(
pb
,
stream
)
<
0
)
{
...
...
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