diff --git a/libeplayer3/container/container_ffmpeg.c b/libeplayer3/container/container_ffmpeg.c index 9920611..98b353c 100644 --- a/libeplayer3/container/container_ffmpeg.c +++ b/libeplayer3/container/container_ffmpeg.c @@ -1677,6 +1677,8 @@ static int Command(void *_context, ContainerCmd_t command, void * argument) if (command != CONTAINER_INIT && !avContext) return cERR_CONTAINER_FFMPEG_ERR; + if (command == CONTAINER_INIT && avContext) + return cERR_CONTAINER_FFMPEG_ERR; switch(command) { case CONTAINER_INIT: {