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
5286d11f
Commit
5286d11f
authored
Feb 15, 2007
by
Michel Bardiaux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spelling fix
Originally committed as revision 7989 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1d726a59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
utils.c
libavcodec/utils.c
+3
-3
No files found.
libavcodec/utils.c
View file @
5286d11f
...
...
@@ -849,7 +849,7 @@ int avcodec_encode_audio(AVCodecContext *avctx, uint8_t *buf, int buf_size,
const
short
*
samples
)
{
if
(
buf_size
<
FF_MIN_BUFFER_SIZE
&&
0
){
av_log
(
avctx
,
AV_LOG_ERROR
,
"buffer smaller th
e
n minimum size
\n
"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"buffer smaller th
a
n minimum size
\n
"
);
return
-
1
;
}
if
((
avctx
->
codec
->
capabilities
&
CODEC_CAP_DELAY
)
||
samples
){
...
...
@@ -871,7 +871,7 @@ int avcodec_encode_video(AVCodecContext *avctx, uint8_t *buf, int buf_size,
const
AVFrame
*
pict
)
{
if
(
buf_size
<
FF_MIN_BUFFER_SIZE
){
av_log
(
avctx
,
AV_LOG_ERROR
,
"buffer smaller th
e
n minimum size
\n
"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"buffer smaller th
a
n minimum size
\n
"
);
return
-
1
;
}
if
(
avcodec_check_dimensions
(
avctx
,
avctx
->
width
,
avctx
->
height
))
...
...
@@ -939,7 +939,7 @@ int avcodec_decode_audio2(AVCodecContext *avctx, int16_t *samples,
//FIXME remove the check below _after_ ensuring that all audio check that the available space is enough
if
(
*
frame_size_ptr
<
AVCODEC_MAX_AUDIO_FRAME_SIZE
){
av_log
(
avctx
,
AV_LOG_ERROR
,
"buffer smaller th
e
n AVCODEC_MAX_AUDIO_FRAME_SIZE
\n
"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"buffer smaller th
a
n AVCODEC_MAX_AUDIO_FRAME_SIZE
\n
"
);
return
-
1
;
}
if
(
*
frame_size_ptr
<
FF_MIN_BUFFER_SIZE
||
...
...
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