mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
fix commit 06f9a1b694
This commit is contained in:
@@ -844,17 +844,21 @@ void cVideo::SetColorFormat(COLOR_FORMAT color_format) {
|
||||
|
||||
bool getvideo2(unsigned char *video, int xres, int yres)
|
||||
{
|
||||
bool ret = false;
|
||||
if(video == NULL)
|
||||
return false;
|
||||
return ret;
|
||||
char videosnapshot[] = "/dev/dvb/adapter0/video0";
|
||||
int fd_video = open(videosnapshot, O_RDONLY);
|
||||
if (fd_video < 0) {
|
||||
perror(videosnapshot);
|
||||
return false;
|
||||
return ret;
|
||||
}
|
||||
ssize_t r = read(fd_video, video, xres * yres * 3);
|
||||
if(r){
|
||||
ret = true;
|
||||
}
|
||||
//ssize_t r = read(fd_video, video, xres * yres * 3);
|
||||
close(fd_video);
|
||||
return true;
|
||||
return ret;
|
||||
}
|
||||
static bool swscale(unsigned char *src, unsigned char *dst, int sw, int sh, int dw, int dh, AVPixelFormat sfmt)
|
||||
{
|
||||
|
Reference in New Issue
Block a user