diff options
author | Johns <johns98@gmx.net> | 2011-12-07 22:06:08 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2011-12-07 22:06:08 +0100 |
commit | a951584eabc515d3386e0b0fbd01ebbf2c98bf92 (patch) | |
tree | a5ea1f91d509703caa605b08cfa5c7f51e7d3b72 /codec.c | |
parent | c1a3ed6041d34336314dc084bf8de36be08c291b (diff) | |
download | vdr-plugin-softhddevice-a951584eabc515d3386e0b0fbd01ebbf2c98bf92.tar.gz vdr-plugin-softhddevice-a951584eabc515d3386e0b0fbd01ebbf2c98bf92.tar.bz2 |
Close codec written.
Diffstat (limited to 'codec.c')
-rw-r--r-- | codec.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |