Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
502d105f
Commit
502d105f
authored
22 years ago
by
Philip Gladstone
Committed by
Zdenek Kabelac
22 years ago
Browse files
Options
Downloads
Patches
Plain Diff
* patch by Philip Gladstone
Originally committed as revision 390 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
bc657ac3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libav/avienc.c
+3
-3
3 additions, 3 deletions
libav/avienc.c
with
3 additions
and
3 deletions
libav/avienc.c
+
3
−
3
View file @
502d105f
...
@@ -94,7 +94,7 @@ unsigned int codec_get_bmp_tag(int id)
...
@@ -94,7 +94,7 @@ unsigned int codec_get_bmp_tag(int id)
}
}
/* BITMAPINFOHEADER header */
/* 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
,
40
);
/* size */
put_le32
(
pb
,
enc
->
width
);
put_le32
(
pb
,
enc
->
width
);
...
@@ -102,7 +102,7 @@ void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc)
...
@@ -102,7 +102,7 @@ void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc)
put_le16
(
pb
,
1
);
/* planes */
put_le16
(
pb
,
1
);
/* planes */
put_le16
(
pb
,
24
);
/* depth */
put_le16
(
pb
,
24
);
/* depth */
/* compression type */
/* 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
,
enc
->
width
*
enc
->
height
*
3
);
put_le32
(
pb
,
0
);
put_le32
(
pb
,
0
);
put_le32
(
pb
,
0
);
put_le32
(
pb
,
0
);
...
@@ -251,7 +251,7 @@ static int avi_write_header(AVFormatContext *s)
...
@@ -251,7 +251,7 @@ static int avi_write_header(AVFormatContext *s)
strf
=
start_tag
(
pb
,
"strf"
);
strf
=
start_tag
(
pb
,
"strf"
);
switch
(
stream
->
codec_type
)
{
switch
(
stream
->
codec_type
)
{
case
CODEC_TYPE_VIDEO
:
case
CODEC_TYPE_VIDEO
:
put_bmp_header
(
pb
,
stream
);
put_bmp_header
(
pb
,
stream
,
codec_bmp_tags
);
break
;
break
;
case
CODEC_TYPE_AUDIO
:
case
CODEC_TYPE_AUDIO
:
if
(
put_wav_header
(
pb
,
stream
)
<
0
)
{
if
(
put_wav_header
(
pb
,
stream
)
<
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment