diff options
author | Michael Hunold <devnull@localhost> | 2003-08-22 08:33:03 +0000 |
---|---|---|
committer | Michael Hunold <devnull@localhost> | 2003-08-22 08:33:03 +0000 |
commit | 102941723dfaefee66b61878673123f76d59e16a (patch) | |
tree | 3330af790dd90f2303e0bc576a5e48f9fe595f92 /linux/drivers | |
parent | 50eb89a5935e5c964b7b8c68b8eddf6eb64e4168 (diff) | |
download | mediapointer-dvb-s2-102941723dfaefee66b61878673123f76d59e16a.tar.gz mediapointer-dvb-s2-102941723dfaefee66b61878673123f76d59e16a.tar.bz2 |
- 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...
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); |