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
4eae08b4
Commit
4eae08b4
authored
Jun 20, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mjpegdec: use av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
bc210bfc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
mjpegdec.c
libavcodec/mjpegdec.c
+2
-5
No files found.
libavcodec/mjpegdec.c
View file @
4eae08b4
...
...
@@ -30,9 +30,6 @@
* MJPEG decoder.
*/
// #define DEBUG
#include <assert.h>
#include "libavutil/imgutils.h"
#include "libavutil/avassert.h"
#include "libavutil/opt.h"
...
...
@@ -52,7 +49,7 @@ static int build_vlc(VLC *vlc, const uint8_t *bits_table,
uint16_t
huff_sym
[
256
];
int
i
;
a
ssert
(
nb_codes
<=
256
);
a
v_assert0
(
nb_codes
<=
256
);
ff_mjpeg_build_huffman_codes
(
huff_size
,
huff_code
,
bits_table
,
val_table
);
...
...
@@ -352,7 +349,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
s
->
avctx
->
color_range
=
s
->
cs_itu601
?
AVCOL_RANGE_MPEG
:
AVCOL_RANGE_JPEG
;
}
}
a
ssert
(
s
->
nb_components
==
3
);
a
v_assert0
(
s
->
nb_components
==
3
);
break
;
case
0x12121100
:
case
0x22122100
:
...
...
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