X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Flibopusdec.c;h=398450f4d45ea5963b5be7c6b79d7ba2ff788be4;hb=3941df546276b190cc9362fd093e6721e8e52f50;hp=0bf040b33b70572ed7ba4d632d1a619c7358faf5;hpb=19b2cb268f5eb8fad3c4f6db9e7874dd52c7ad0c;p=ffmpeg diff --git a/libavcodec/libopusdec.c b/libavcodec/libopusdec.c index 0bf040b33b7..398450f4d45 100644 --- a/libavcodec/libopusdec.c +++ b/libavcodec/libopusdec.c @@ -116,7 +116,7 @@ static int libopus_decode(AVCodecContext *avc, void *data, int ret, nb_samples; frame->nb_samples = MAX_FRAME_SIZE; - ret = ff_get_buffer(avc, frame); + ret = ff_get_buffer(avc, frame, 0); if (ret < 0) { av_log(avc, AV_LOG_ERROR, "get_buffer() failed\n"); return ret; @@ -152,6 +152,7 @@ static void libopus_flush(AVCodecContext *avc) AVCodec ff_libopus_decoder = { .name = "libopus", + .long_name = NULL_IF_CONFIG_SMALL("libopus Opus"), .type = AVMEDIA_TYPE_AUDIO, .id = AV_CODEC_ID_OPUS, .priv_data_size = sizeof(struct libopus_context), @@ -160,7 +161,6 @@ AVCodec ff_libopus_decoder = { .decode = libopus_decode, .flush = libopus_flush, .capabilities = CODEC_CAP_DR1, - .long_name = NULL_IF_CONFIG_SMALL("libopus Opus"), .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE },