Commit 6db97188 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avcodec/(null|opus_metadata)_bsf: Use ff_bsf_get_packet_ref() directly

Reviewed-by: 's avatarJames Almer <jamrial@gmail.com>
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
parent 47cd3c88
......@@ -24,12 +24,7 @@
#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,
.filter = ff_bsf_get_packet_ref,
};
......@@ -25,11 +25,6 @@ typedef struct OpusBSFContext {
int gain;
} OpusBSFContext;
static int opus_metadata_filter(AVBSFContext *bsfc, AVPacket *pkt)
{
return ff_bsf_get_packet_ref(bsfc, pkt);
}
static int opus_metadata_init(AVBSFContext *bsfc)
{
OpusBSFContext *s = bsfc->priv_data;
......@@ -67,6 +62,6 @@ const AVBitStreamFilter ff_opus_metadata_bsf = {
.priv_data_size = sizeof(OpusBSFContext),
.priv_class = &opus_metadata_class,
.init = &opus_metadata_init,
.filter = &opus_metadata_filter,
.filter = &ff_bsf_get_packet_ref,
.codec_ids = codec_ids,
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment