mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 15:33:00 +02:00
libeplayer3: check for valid avContext pointer
This commit is contained in:
@@ -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: {
|
||||
|
Reference in New Issue
Block a user