Close codec written.

This commit is contained in:
Johns 2011-12-07 22:06:08 +01:00
parent c1a3ed6041
commit a951584eab

View File

@ -344,8 +344,12 @@ void CodecVideoOpen(VideoDecoder * decoder, const char *name, int codec_id)
*/ */
void CodecVideoClose(VideoDecoder * video_decoder) void CodecVideoClose(VideoDecoder * video_decoder)
{ {
(void)video_decoder; // FIXME: play buffered data
// FIXME: write close code av_freep(&video_decoder->Frame);
if ( video_decoder->VideoCtx ) {
avcodec_close(video_decoder->VideoCtx);
av_freep(&video_decoder->VideoCtx);
}
} }
#if 0 #if 0