Merge pull request #4324 from FernetMenta/wasapi
[vuplus_xbmc] / lib / xbmc-libav-hacks / buffersink.c
1 /*
2  * Code copied from libavfilter/buffersink.c
3  *
4  * Original license is:
5  *
6  * Copyright (c) 2011 Stefano Sabatini
7  *
8  * This file is part of FFmpeg.
9  *
10  * FFmpeg is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 2.1 of the License, or (at your option) any later version.
14  *
15  * FFmpeg is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with FFmpeg; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  */
24
25 #include "libav_hacks.h"
26
27 AVBufferSinkParams *av_buffersink_params_alloc(void)
28 {
29     static const int pixel_fmts[] = { AV_PIX_FMT_NONE };
30     AVBufferSinkParams *params = av_malloc(sizeof(AVBufferSinkParams));
31     if (!params)
32         return NULL;
33
34     params->pixel_fmts = pixel_fmts;
35     return params;
36 }