aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/decoder.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-06-25 22:46:44 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-06-25 22:46:44 +0000
commit1e75e06a7c357ed022f01dba6d5bc9c8a2a7ce23 (patch)
tree0367b85878666d9d281e231ba89efe9fba8a4a37 /lib/dvb/decoder.cpp
parent03379b6e86edfcce851da2d11c3189d1b7843afb (diff)
downloadenigma2-1e75e06a7c357ed022f01dba6d5bc9c8a2a7ce23.tar.gz
enigma2-1e75e06a7c357ed022f01dba6d5bc9c8a2a7ce23.zip
fix
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)");