mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
avcodec/(null|opus_metadata)_bsf: Use ff_bsf_get_packet_ref() directly
Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
47cd3c88c5
commit
6db97188d8
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user