aptx: add codec cap SMALL_LAST_FRAME and INIT_THREADSAFE as appropriate
authorAurelien Jacobs <aurel@gnuage.org>
Sun, 17 Dec 2017 22:06:48 +0000 (23:06 +0100)
committerRostislav Pehlivanov <atomnuker@gmail.com>
Mon, 18 Dec 2017 01:07:00 +0000 (01:07 +0000)
libavcodec/aptx.c

index d09ce8f..a35d286 100644 (file)
@@ -836,6 +836,7 @@ AVCodec ff_aptx_decoder = {
     .decode                = aptx_decode_frame,
     .close                 = aptx_close,
     .capabilities          = AV_CODEC_CAP_DR1,
+    .caps_internal         = FF_CODEC_CAP_INIT_THREADSAFE,
     .channel_layouts       = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0},
     .sample_fmts           = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S32P,
                                                              AV_SAMPLE_FMT_NONE },
@@ -852,6 +853,8 @@ AVCodec ff_aptx_encoder = {
     .init                  = aptx_init,
     .encode2               = aptx_encode_frame,
     .close                 = aptx_close,
+    .capabilities          = AV_CODEC_CAP_SMALL_LAST_FRAME,
+    .caps_internal         = FF_CODEC_CAP_INIT_THREADSAFE,
     .channel_layouts       = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0},
     .sample_fmts           = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S32P,
                                                              AV_SAMPLE_FMT_NONE },