aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/decoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dvb/decoder.cpp')
-rw-r--r--lib/dvb/decoder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dvb/decoder.cpp b/lib/dvb/decoder.cpp
index 8e172c8b..a6b0ccb2 100644
--- a/lib/dvb/decoder.cpp
+++ b/lib/dvb/decoder.cpp
@@ -782,7 +782,8 @@ RESULT eTSMPEGDecoder::showSinglePic(const char *filename)
int vfd = open("/dev/dvb/adapter0/video0", O_RDWR);
if (vfd > 0)
{
- int length = fseek(f, 0, SEEK_END);
+ fseek(f, 0, SEEK_END);
+ int length = ftell(f);
unsigned char *buffer = new unsigned char[length*3+9];
if (ioctl(vfd, VIDEO_FAST_FORWARD, 1) < 0)
eDebug("VIDEO_FAST_FORWARD failed (%m)");