From 00cc3e8df7fec482a953416c1bb76d7be7f7a8ba Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 16 Dec 2008 15:59:35 +0100 Subject: [PATCH] convert dvb api aspect to etsi aspect --- lib/dvb/decoder.cpp | 4 ++-- 1 file 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)"); -- 2.30.2