Embarrassing, good eye. Fixing now! On Sat, Feb 18, 2023 at 12:59 PM Hendrik Leppkes <h.lepp...@gmail.com> wrote:
> On Sat, Feb 18, 2023 at 6:50 PM Marth64 <mart...@proxyid.net> wrote: > > > > Signed-off-by: Marth64 <mart...@proxyid.net> > > --- > > - Missed adding the profiles to actual codec descriptor in ac3dec_float > > - Formatting tidyness > > > > libavcodec/ac3dec.c | 3 +++ > > libavcodec/ac3dec.h | 1 + > > libavcodec/ac3dec_float.c | 2 ++ > > libavcodec/avcodec.h | 2 ++ > > libavcodec/codec_desc.c | 1 + > > libavcodec/eac3dec.c | 11 ++++++++++- > > libavcodec/profiles.c | 5 +++++ > > libavcodec/profiles.h | 1 + > > 8 files changed, 25 insertions(+), 1 deletion(-) > > > > diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c > > index 0b120e6140..b5f4b166d3 100644 > > --- a/libavcodec/ac3dec.c > > +++ b/libavcodec/ac3dec.c > > @@ -1714,6 +1714,9 @@ skip: > > if (!err) { > > avctx->sample_rate = s->sample_rate; > > avctx->bit_rate = s->bit_rate + s->prev_bit_rate; > > + > > + if (s->eac3_extension_type_a == 1) > > + avctx->profile = s->eac3_extension_type_a == 1 ? > FF_PROFILE_EAC3_DDP_ATMOS : FF_PROFILE_UNKNOWN; > > } > > You have to leave out the if(..) for this to make sense. :) > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe". > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".