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
92779658
Commit
92779658
authored
Jun 22, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bmpenc: use av_assert()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
c0ca8408
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bmpenc.c
libavcodec/bmpenc.c
+2
-2
No files found.
libavcodec/bmpenc.c
View file @
92779658
...
...
@@ -21,10 +21,10 @@
*/
#include "libavutil/imgutils.h"
#include "libavutil/avassert.h"
#include "avcodec.h"
#include "bytestream.h"
#include "bmp.h"
#include <assert.h>
#include "internal.h"
static
const
uint32_t
monoblack_pal
[]
=
{
0x000000
,
0xFFFFFF
};
...
...
@@ -98,7 +98,7 @@ static int bmp_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
case
PIX_FMT_RGB4_BYTE
:
case
PIX_FMT_BGR4_BYTE
:
case
PIX_FMT_GRAY8
:
a
ssert
(
bit_count
==
8
);
a
v_assert1
(
bit_count
==
8
);
ff_set_systematic_pal2
(
palette256
,
avctx
->
pix_fmt
);
pal
=
palette256
;
break
;
...
...
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