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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dvb/decoder.cpp b/lib/dvb/decoder.cpp
index 79c4bd1e..8bc07e60 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)");