libeplayer3: check for valid avContext pointer

This commit is contained in:
martii
2012-11-09 17:43:11 +01:00
committed by Stefan Seyfried
parent 4cf92f8102
commit 1c1d85e582

View File

@@ -1871,6 +1871,10 @@ static int Command(void *_context, ContainerCmd_t command, void * argument)
ffmpeg_printf(50, "Command %d\n", command);
#ifdef MARTII
if (command != CONTAINER_INIT && !avContext)
return cERR_CONTAINER_FFMPEG_ERR;
#endif
switch(command)
{
case CONTAINER_INIT: {