[Ffmpeg-devel] [FWD] [PATCH] immediate decoding of dvd stills
Michael Niedermayer
michaelni
Tue Nov 28 11:35:40 CET 2006
Hi
On Mon, Nov 27, 2006 at 11:17:12PM +0100, Nico Sabbi wrote:
> Michael Niedermayer wrote:
> >Hi
> >>+
> >> if(pc->frame_start_found){
> >> /* EOF considered as end of frame */
> >> if (buf_size == 0)
> >
> >
> >except these its ok if it works and doesnt breal anything
> >
> >[...]
>
> uhm done, but it's still not enough to force lavc to release
> immediately Iframes followed by 0x1b7 code (low_delay is
> still needed). I must have used wrong samples.
> Any clue?
yes, after thinking about this for a second ...
the 0x1b7 should be sent to the decoder as its own packet and the decoder
should if needed then output the last frame (as if it has been feeded with
a 0 sized packet at the end)
something like:
- if (buf_size == 0) {
+ if (buf_size == 0 || !memcmp(buf, (char[]){0,0,1,BF}, 4) {
/* special case for last picture */
if (s2->low_delay==0 && s2->next_picture_ptr) {
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is
More information about the ffmpeg-devel
mailing list