Fix the fix, when sillpicture is called in suspend.

This commit is contained in:
Johns 2013-04-06 14:24:08 +02:00
parent a1b77b1502
commit 857546a3a5
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
User johns
Date:
Fix the fix, when sillpicture is called in suspend mode.
Fix crash, when sillpicture is called in suspend mode.
Add workaround for zero width+height and ffmpeg >= 1.2.

View File

@ -2580,7 +2580,7 @@ void StillPicture(const uint8_t * data, int size)
int old_video_hardware_decoder;
// might be called in Suspended Mode
if (MyVideoStream->Decoder && MyVideoStream->SkipStream) {
if (!MyVideoStream->Decoder || MyVideoStream->SkipStream) {
return;
}
// must be a PES start code