From 102941723dfaefee66b61878673123f76d59e16a Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Fri, 22 Aug 2003 08:33:03 +0000 Subject: - play_iframe may be used to play stillpicture frames, that can either by complete i-frames or partial p-frames. In any case, the av7110 needs about 400kB of video data, before the internal video decoder starts displaying anything. for stillframes, this is bad, so we *always* loop writing the frame until the magic amount is reached. stupid, but works... --- linux/drivers/media/dvb/ttpci/av7110.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'linux/drivers/media') diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c index b97616626..67ff91c36 100644 --- a/linux/drivers/media/dvb/ttpci/av7110.c +++ b/linux/drivers/media/dvb/ttpci/av7110.c @@ -3714,7 +3714,11 @@ static int play_iframe(struct av7110 *av7110, u8 *buf, unsigned int len, int non return -EBUSY; n=MIN_IFRAME/len+1; } - + + /* setting n always > 1, fixes problems when playing stillframes + consisting of I- and P-Frames */ + n=MIN_IFRAME/len+1; + /* FIXME: nonblock? */ dvb_play(av7110, iframe_header, sizeof(iframe_header), 0, 1, 0); -- cgit v1.2.3