X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fac3dec.c;h=09f87cde70d2fe58a85f35c6bb58058232c884e9;hb=2b02bc64226ad645e6f97f955bff3fcaf731b25a;hp=4ac3ea5cf1305d5d0c7c192ae23f392b7709c857;hpb=204c4e953d895e15ab0908d715fd46181bf32add;p=ffmpeg diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 4ac3ea5cf13..09f87cde70d 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -1433,6 +1433,8 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, } } + s->frame.decode_error_flags = err ? FF_DECODE_ERROR_INVALID_BITSTREAM : 0; + *got_frame_ptr = 1; *(AVFrame *)data = s->frame; @@ -1475,7 +1477,7 @@ static const AVClass ac3_decoder_class = { AVCodec ff_ac3_decoder = { .name = "ac3", .type = AVMEDIA_TYPE_AUDIO, - .id = CODEC_ID_AC3, + .id = AV_CODEC_ID_AC3, .priv_data_size = sizeof (AC3DecodeContext), .init = ac3_decode_init, .close = ac3_decode_end, @@ -1499,7 +1501,7 @@ static const AVClass eac3_decoder_class = { AVCodec ff_eac3_decoder = { .name = "eac3", .type = AVMEDIA_TYPE_AUDIO, - .id = CODEC_ID_EAC3, + .id = AV_CODEC_ID_EAC3, .priv_data_size = sizeof (AC3DecodeContext), .init = ac3_decode_init, .close = ac3_decode_end,