mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Fix crash, when sillpicture is called in suspend mode.
This commit is contained in:
parent
23b0e0d599
commit
4e3f5f5414
@ -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
|
||||||
|
@ -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"));
|
||||||
|
Loading…
Reference in New Issue
Block a user