summaryrefslogtreecommitdiff
path: root/codec.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2011-12-07 22:06:08 +0100
committerJohns <johns98@gmx.net>2011-12-07 22:06:08 +0100
commita951584eabc515d3386e0b0fbd01ebbf2c98bf92 (patch)
treea5ea1f91d509703caa605b08cfa5c7f51e7d3b72 /codec.c
parentc1a3ed6041d34336314dc084bf8de36be08c291b (diff)
downloadvdr-plugin-softhddevice-a951584eabc515d3386e0b0fbd01ebbf2c98bf92.tar.gz
vdr-plugin-softhddevice-a951584eabc515d3386e0b0fbd01ebbf2c98bf92.tar.bz2
Close codec written.
Diffstat (limited to 'codec.c')
-rw-r--r--codec.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/codec.c b/codec.c
index 8cc0124..b8fda3e 100644
--- a/codec.c
+++ b/codec.c
@@ -344,8 +344,12 @@ void CodecVideoOpen(VideoDecoder * decoder, const char *name, int codec_id)
*/
void CodecVideoClose(VideoDecoder * video_decoder)
{
- (void)video_decoder;
- // FIXME: write close code
+ // FIXME: play buffered data
+ av_freep(&video_decoder->Frame);
+ if ( video_decoder->VideoCtx ) {
+ avcodec_close(video_decoder->VideoCtx);
+ av_freep(&video_decoder->VideoCtx);
+ }
}
#if 0