mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-08 17:11:08 +00:00
avcodec/bsf/eac3_core: clear profile value on init()
The output stream no longer has Atmos metadata, so the
AV_PROFILE_EAC3_DDP_ATMOS profile, if it was set, is no longer valid.
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit c77c0e580a)
This commit is contained in:
@@ -23,6 +23,13 @@
|
||||
#include "get_bits.h"
|
||||
#include "ac3_parser_internal.h"
|
||||
|
||||
static int eac3_core_init(AVBSFContext *ctx)
|
||||
{
|
||||
ctx->par_out->profile = AV_PROFILE_UNKNOWN;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int eac3_core_filter(AVBSFContext *ctx, AVPacket *pkt)
|
||||
{
|
||||
AC3HeaderInfo hdr;
|
||||
@@ -82,5 +89,6 @@ static const enum AVCodecID codec_ids[] = {
|
||||
const FFBitStreamFilter ff_eac3_core_bsf = {
|
||||
.p.name = "eac3_core",
|
||||
.p.codec_ids = codec_ids,
|
||||
.init = eac3_core_init,
|
||||
.filter = eac3_core_filter,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user