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:
c17808c
)
codec_release_buffer: fix handling of non user buffers
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 22 Jun 2012 21:50:27 +0000
(23:50 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 22 Jun 2012 21:53:24 +0000
(23:53 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
cmdutils.c
patch
|
blob
|
history
diff --git
a/cmdutils.c
b/cmdutils.c
index
bce87a6
..
557e1a6
100644
(file)
--- a/
cmdutils.c
+++ b/
cmdutils.c
@@
-1343,8
+1343,10
@@
void codec_release_buffer(AVCodecContext *s, AVFrame *frame)
FrameBuffer *buf = frame->opaque;
int i;
- if(frame->type!=FF_BUFFER_TYPE_USER)
+ if(frame->type!=FF_BUFFER_TYPE_USER)
{
avcodec_default_release_buffer(s, frame);
+ return;
+ }
for (i = 0; i < FF_ARRAY_ELEMS(frame->data); i++)
frame->data[i] = NULL;