mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 07:22:44 +02:00
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:
@@ -444,7 +444,7 @@ void cVideo::ShowPicture(const char * fname)
|
|||||||
if (ioctl(fd, VIDEO_SET_FORMAT, VIDEO_FORMAT_16_9) < 0)
|
if (ioctl(fd, VIDEO_SET_FORMAT, VIDEO_FORMAT_16_9) < 0)
|
||||||
lt_info("%s: VIDEO_SET_FORMAT failed (%m)\n", __func__);
|
lt_info("%s: VIDEO_SET_FORMAT failed (%m)\n", __func__);
|
||||||
#ifdef MARTII
|
#ifdef MARTII
|
||||||
char *iframe = (char *)malloc((st.st_size < 8192) ? 8192 : st.st_size);
|
char *iframe = (char *)malloc(st.st_size);
|
||||||
#else
|
#else
|
||||||
bool seq_end_avail = false;
|
bool seq_end_avail = false;
|
||||||
size_t pos=0;
|
size_t pos=0;
|
||||||
|
Reference in New Issue
Block a user