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
d014e195
Commit
d014e195
authored
Jul 23, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvorbisenc: switch to av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
72a9e646
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
libvorbisenc.c
libavcodec/libvorbisenc.c
+2
-3
No files found.
libavcodec/libvorbisenc.c
View file @
d014e195
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
#include <vorbis/vorbisenc.h>
#include <vorbis/vorbisenc.h>
#include "libavutil/avassert.h"
#include "libavutil/fifo.h"
#include "libavutil/fifo.h"
#include "libavutil/opt.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "avcodec.h"
...
@@ -28,8 +29,6 @@
...
@@ -28,8 +29,6 @@
#include "vorbis.h"
#include "vorbis.h"
#include "vorbis_parser.h"
#include "vorbis_parser.h"
#undef NDEBUG
#include <assert.h>
/* Number of samples the user should send in each call.
/* Number of samples the user should send in each call.
* This value is used because it is the LCD of all possible frame sizes, so
* This value is used because it is the LCD of all possible frame sizes, so
...
@@ -250,7 +249,7 @@ static av_cold int oggvorbis_encode_init(AVCodecContext *avctx)
...
@@ -250,7 +249,7 @@ static av_cold int oggvorbis_encode_init(AVCodecContext *avctx)
offset
+=
header_comm
.
bytes
;
offset
+=
header_comm
.
bytes
;
memcpy
(
&
p
[
offset
],
header_code
.
packet
,
header_code
.
bytes
);
memcpy
(
&
p
[
offset
],
header_code
.
packet
,
header_code
.
bytes
);
offset
+=
header_code
.
bytes
;
offset
+=
header_code
.
bytes
;
a
ssert
(
offset
==
avctx
->
extradata_size
);
a
v_assert0
(
offset
==
avctx
->
extradata_size
);
if
((
ret
=
avpriv_vorbis_parse_extradata
(
avctx
,
&
s
->
vp
))
<
0
)
{
if
((
ret
=
avpriv_vorbis_parse_extradata
(
avctx
,
&
s
->
vp
))
<
0
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"invalid extradata
\n
"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"invalid extradata
\n
"
);
...
...
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