diff options
author | Jeremy Andrews <athenian200@outlook.com> | 2021-09-26 13:48:44 -0500 |
---|---|---|
committer | Jeremy Andrews <athenian200@outlook.com> | 2021-09-26 13:48:44 -0500 |
commit | 032e39643a289df092067142058dfd4e59667d52 (patch) | |
tree | 7877b1fba3ee0baf7d9c87af9d3f8cb264e182b3 /libs/ffvpx/libavcodec/null_bsf.c | |
parent | cc621e1829f61df96473cd04fb8ba27a65c99e13 (diff) | |
download | aura-central-032e39643a289df092067142058dfd4e59667d52.tar.gz |
Issue %3003 - Move ffvpx to libs/
Diffstat (limited to 'libs/ffvpx/libavcodec/null_bsf.c')
-rw-r--r-- | libs/ffvpx/libavcodec/null_bsf.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/libs/ffvpx/libavcodec/null_bsf.c b/libs/ffvpx/libavcodec/null_bsf.c new file mode 100644 index 000000000..24d26dfb1 --- /dev/null +++ b/libs/ffvpx/libavcodec/null_bsf.c @@ -0,0 +1,35 @@ +/* + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +/** + * @file + * Null bitstream filter -- pass the input through unchanged. + */ + +#include "avcodec.h" +#include "bsf.h" + +static int null_filter(AVBSFContext *ctx, AVPacket *pkt) +{ + return ff_bsf_get_packet_ref(ctx, pkt); +} + +const AVBitStreamFilter ff_null_bsf = { + .name = "null", + .filter = null_filter, +}; |