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
c3846e3e
Commit
c3846e3e
authored
Dec 21, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: Do not fail audio decoding if user has set a custom get_buffer.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
077b086d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
utils.c
libavcodec/utils.c
+3
-2
No files found.
libavcodec/utils.c
View file @
c3846e3e
...
...
@@ -991,9 +991,10 @@ int attribute_align_arg avcodec_decode_audio3(AVCodecContext *avctx, int16_t *sa
int
ret
,
got_frame
=
0
;
if
(
avctx
->
get_buffer
!=
avcodec_default_get_buffer
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"
A custom get_buffer() cannot be used with
"
av_log
(
avctx
,
AV_LOG_ERROR
,
"
Overriding custom get_buffer() for
"
"avcodec_decode_audio3()
\n
"
);
return
AVERROR
(
EINVAL
);
avctx
->
get_buffer
=
avcodec_default_get_buffer
;
avctx
->
release_buffer
=
avcodec_default_release_buffer
;
}
ret
=
avcodec_decode_audio4
(
avctx
,
&
frame
,
&
got_frame
,
avpkt
);
...
...
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