Fix crash, when sillpicture is called in suspend mode.

This commit is contained in:
Johns 2013-04-03 16:48:00 +02:00
parent 23b0e0d599
commit 4e3f5f5414
2 changed files with 5 additions and 0 deletions

View File

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

View File

@ -2579,6 +2579,10 @@ void StillPicture(const uint8_t * data, int size)
int i; int i;
int old_video_hardware_decoder; int old_video_hardware_decoder;
// might be called in Suspended Mode
if (MyVideoStream->SkipStream->Decoder && MyVideoStream->SkipStream) {
return;
}
// must be a PES start code // must be a PES start code
if (size < 9 || !data || data[0] || data[1] || data[2] != 0x01) { if (size < 9 || !data || data[0] || data[1] || data[2] != 0x01) {
Error(_("[softhddev] invalid still video packet\n")); Error(_("[softhddev] invalid still video packet\n"));