Browse Source

Release buffers after encoding svq1.

Fixes ticket #820.
(cherry picked from commit 8e88145d0b)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9.1
Carl Eugen Hoyos Michael Niedermayer 14 years ago
parent
commit
340fee05f0
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavcodec/svq1enc.c

+ 4
- 0
libavcodec/svq1enc.c View File

@@ -563,6 +563,10 @@ static av_cold int svq1_encode_end(AVCodecContext *avctx)
av_freep(&s->motion_val8[i]);
av_freep(&s->motion_val16[i]);
}
if(s->current_picture.data[0])
avctx->release_buffer(avctx, &s->current_picture);
if(s->last_picture.data[0])
avctx->release_buffer(avctx, &s->last_picture);

return 0;
}


Loading…
Cancel
Save