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

Michael Niedermayer michaelni
Wed Aug 11 17:27:01 CEST 2010


On Wed, Aug 11, 2010 at 05:44:40AM -0700, S.N. Hemanth Meenakshisundaram wrote:
> 
> Need to set type on getting video buffer. I should have sent this as
> part of the "Separate video specific BufferRef properties into
> VideoProps" patch. Sending separately as it has been applied.
> 
> ---
>  libavfilter/avfilter.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> 
> 

>  avfilter.c |    2 ++
>  1 file changed, 2 insertions(+)
> ae7a0fdf95a035a1e7900b7582fde4eca06afb6e  0001-Set-type-on-buffer-in-get_video_buffer.patch
> diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
> index 468e5f7..4ec6efb 100644
> --- a/libavfilter/avfilter.c
> +++ b/libavfilter/avfilter.c
> @@ -211,6 +211,8 @@ AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms, int
>      if(!ret)
>          ret = avfilter_default_get_video_buffer(link, perms, w, h);
>  
> +    ret->type = AVMEDIA_TYPE_VIDEO;

segfault

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

> ... defining _GNU_SOURCE...
For the love of all that is holy, and some that is not, don't do that.
-- Luca & Mans
-------------- 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/8f90dc88/attachment.pgp>



More information about the ffmpeg-devel mailing list