libspark/video: ShowPicture: fix malloc size

Origin commit data
------------------
Branch: master
Commit: 781cf7f389
Author: martii <m4rtii@gmx.de>
Date: 2013-05-25 (Sat, 25 May 2013)


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

------------------
This commit was generated by Migit
This commit is contained in:
martii
2013-05-25 12:53:25 +02:00
parent beb2e08433
commit 979e4400ea

View File

@@ -444,7 +444,7 @@ void cVideo::ShowPicture(const char * fname)
if (ioctl(fd, VIDEO_SET_FORMAT, VIDEO_FORMAT_16_9) < 0)
lt_info("%s: VIDEO_SET_FORMAT failed (%m)\n", __func__);
#ifdef MARTII
char *iframe = (char *)malloc((st.st_size < 8192) ? 8192 : st.st_size);
char *iframe = (char *)malloc(st.st_size);
#else
bool seq_end_avail = false;
size_t pos=0;