OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdda9b4
)
audio_get_buffer: add assert to ensure nb_extended_buf has a safe value
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 19 Mar 2013 13:19:29 +0000
(14:19 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 19 Mar 2013 13:33:47 +0000
(14:33 +0100)
May silence CID991853
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
b031132
..
b245914
100644
(file)
--- a/
libavcodec/utils.c
+++ b/
libavcodec/utils.c
@@
-478,8
+478,10
@@
static int audio_get_buffer(AVCodecContext *avctx, AVFrame *frame)
av_freep(&frame->extended_buf);
return AVERROR(ENOMEM);
}
- } else
+ } else
{
frame->extended_data = frame->data;
+ av_assert0(frame->nb_extended_buf == 0);
+ }
for (i = 0; i < FFMIN(planes, AV_NUM_DATA_POINTERS); i++) {
frame->buf[i] = av_buffer_pool_get(pool->pools[0]);