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

Michael Niedermayer michaelni
Wed Aug 11 18:15:08 CEST 2010


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100811/82d48fe2/attachment.pgp>



More information about the ffmpeg-devel mailing list