[FFmpeg-devel] [PATCH] Set type on buffer in get_video_buffer

Stefano Sabatini stefano.sabatini-lala
Wed Aug 11 17:39:19 CEST 2010


On date Wednesday 2010-08-11 18:15:08 +0200, Michael Niedermayer encoded:
> On Wed, Aug 11, 2010 at 06:52:08AM -0700, S.N. Hemanth Meenakshisundaram wrote:
> > Now checking for ret != NULL. Sorry, misunderstood comment earlier.
> > 
> > ---
> >  libavfilter/avfilter.c |    3 +++
> >  1 files changed, 3 insertions(+), 0 deletions(-)
> > 
> > 
> > 
> 
> >  avfilter.c |    3 +++
> >  1 file changed, 3 insertions(+)
> > 228d9c46c87dc46621db643ac3538244fefc7a9e  0001-Set-type-on-buffer-in-get_video_buffer.patch
> > diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
> > index 468e5f7..17a2f7c 100644
> > --- a/libavfilter/avfilter.c
> > +++ b/libavfilter/avfilter.c
> > @@ -211,6 +211,9 @@ AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms, int
> >      if(!ret)
> >          ret = avfilter_default_get_video_buffer(link, perms, w, h);
> >  
> > +    if (ret)
> > +        ret->type = AVMEDIA_TYPE_VIDEO;
> > +
> 
> ok

Applied.
-- 
FFmpeg = Frightening and Fundamental Mere Powered Eccentric Guru



More information about the ffmpeg-devel mailing list