aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-22 23:50:27 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-22 23:53:24 +0200
commitc13e490dce1a66d79e1f053d8a38fb9b2eb53267 (patch)
tree8e884e85a2134f4697fb1bf0f6c59fad3f016330 /cmdutils.c
parentc17808cebd2b9cf734dfa7f652ed49a3b3289386 (diff)
downloadffmpeg-c13e490dce1a66d79e1f053d8a38fb9b2eb53267.tar.gz
codec_release_buffer: fix handling of non user buffers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c
index bce87a6eed..557e1a601f 100644
--- 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;