[linux-dvb] Bug in VIDEO_SET_DISPLAY_FORMAT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

I found a bug from ttpci/av7110_av.c:

The requested "panscan"-type is incorrectly set into 
av7110->videostate.video_format. As far as I understand, 
av7110->videostate.video_format should contain the aspect ratio of 
the currently played video stream.

After setting preferred screen clipping type with 
VIDEO_SET_DISPLAY_FORMAT, VIDEO_GET_STATUS reports 
wrong aspect ratio until next aspect ratio change.

Here's a patch to fix it:

*** dvb-kernel-old/linux/drivers/media/dvb/ttpci/av7110_av.c    Wed Apr  6 19:46:28 2005
--- dvb-kernel/linux/drivers/media/dvb/ttpci/av7110_av.c        Wed Apr  6 19:46:48 2005
***************
*** 1075,1081 ****
                }
                if (ret < 0)
                        break;
-               av7110->videostate.video_format = format;
                ret = av7110_fw_cmd(av7110, COMTYPE_ENCODER, SetPanScanType,
                                    1, (u16) val);
                break;
--- 1075,1080 ----

-- 
Rami R?s?nen
raipe@xxxxxxxxxx



[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux