2 * Code copied from libavfilter/buffersink.c
6 * Copyright (c) 2011 Stefano Sabatini
8 * This file is part of FFmpeg.
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.
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.
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
25 #include "libav_hacks.h"
27 AVBufferSinkParams *av_buffersink_params_alloc(void)
29 static const int pixel_fmts[] = { AV_PIX_FMT_NONE };
30 AVBufferSinkParams *params = av_malloc(sizeof(AVBufferSinkParams));
34 params->pixel_fmts = pixel_fmts;