[gst-devel] [RFC] invalid buffers

Xavier Bestel xavier.bestel at free.fr
Sat Jun 15 01:10:01 CEST 2002


Le sam 15/06/2002 à 04:46, Ted Gould a écrit :
> > Sometimes a plugin can send an invalid buffer, e.g. after seeking in an
> > mpeg video stream at a non-keyframe position, there will be garbage in
> > the buffer until a keyframe (I-frame in mpeg language) is met.
> > 
> > What do you think ?
> 
> My first reaction says that there is no reason that the MPEG decoder has
> to send invalid data, even without the I frame.  For instance if you
> working with an I-slice stream you may want to show just the intra-coded
> sections of the P-frames, and just make the rest black.  So I would say
> that it should be the decoder's responsibility to provide valid frames,
> whether they be NULL (black) or something like that.

Well, having black frames is no better than having a wrong frame, for
some applications. If the decoder can't make a valid frame, it shouldn't
send it at all or mark it as invalid. Just "painting" it black isn't
sufficient and may be misleading.

	Xav





More information about the gstreamer-devel mailing list