summaryrefslogtreecommitdiff
path: root/lib/dvb/decoder.cpp
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2008-12-16 14:59:35 (GMT)
committerghost <andreas.monzner@multimedia-labs.de>2008-12-16 14:59:35 (GMT)
commit00cc3e8df7fec482a953416c1bb76d7be7f7a8ba (patch)
tree86464d4625554a21d206184906e27e829e233770 /lib/dvb/decoder.cpp
parent6e16107fdcc5f838f681d6f5d49e30124ebe5d74 (diff)
convert dvb api aspect to etsi aspect
Diffstat (limited to 'lib/dvb/decoder.cpp')
-rw-r--r--lib/dvb/decoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dvb/decoder.cpp b/lib/dvb/decoder.cpp
index 79c4bd1..8bc07e6 100644
--- a/lib/dvb/decoder.cpp
+++ b/lib/dvb/decoder.cpp
@@ -557,7 +557,7 @@ void eDVBVideo::video_event(int)
{
struct iTSMPEGDecoder::videoEvent event;
event.type = iTSMPEGDecoder::videoEvent::eventSizeChanged;
- m_aspect = event.aspect = evt.u.size.aspect_ratio;
+ m_aspect = event.aspect = evt.u.size.aspect_ratio == 0 ? 2 : 3; // convert dvb api to etsi
m_height = event.height = evt.u.size.h;
m_width = event.width = evt.u.size.w;
/* emit */ m_event(event);
@@ -612,7 +612,7 @@ static int readApiSize(int fd, int &xres, int &yres, int &aspect)
{
xres = size.w;
yres = size.h;
- aspect = size.aspect_ratio;
+ aspect = size.aspect_ratio == 0 ? 2 : 3; // convert dvb api to etsi
return 0;
}
// eDebug("VIDEO_GET_SIZE failed (%m)");