[Ffmpeg-devel] [FWD] [PATCH] immediate decoding of dvd stills

Nico Sabbi nicola_sabbi
Fri Dec 1 01:24:13 CET 2006

Michael Niedermayer wrote:

> this is wrong, if you output a picture, then it must be removed otherwise
> it would be output again with the next I frame
> and no iam not saying s2->next_picture_ptr= NULL is enough for this, just
> that doing nothing is definitly not correct
> [...]

this patch works exactly as I need (mplayer -fps 1 file.m2v 
shows the stills with 0 delay without setting low_delay in 
the flags),
but I don't know if it's even remotely acceptable or how 
much it sucks, apologies in advance :)

The seq_end_code is stored at the end of the frame, and 
based on its presence slice_end() works as if low_delay was set;
ff_draw_horiz_band() works on ->current_picture_ptr if
the codec is mpeg12 && pict_type== I_frame and ->temp_ref==0
(that should be true for all mpeg12 stills).
If this method is wrong I'd like to have some direction, 
please :) At the moment I'm just stabbing in the dark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpeg12still3.diff
Type: text/x-patch
Size: 4480 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061201/3d735f83/attachment.bin>

More information about the ffmpeg-devel mailing list