summaryrefslogtreecommitdiff
path: root/codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'codec.c')
-rw-r--r--codec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/codec.c b/codec.c
index fb373d5..a50187c 100644
--- a/codec.c
+++ b/codec.c
@@ -357,6 +357,10 @@ void CodecVideoOpen(VideoDecoder * decoder, const char *name, int codec_id)
Debug(3, "codec: using codec %s or ID %#04x\n", name, codec_id);
+ if ( decoder->VideoCtx ) {
+ Error(_("codec: missing close\n"));
+ }
+
//
// ffmpeg compatibility hack
//