libeplayer3: check for valid avContext pointer

Origin commit data
------------------
Branch: master
Commit: 3d5353cbd8
Author: martii <m4rtii@gmx.de>
Date: 2012-11-09 (Fri, 09 Nov 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2012-11-09 17:43:11 +01:00
parent 79ff14bd82
commit db7a10bb74

View File

@@ -1941,6 +1941,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: {