diff mbox

[FFmpeg-devel] aptx: add codec cap SMALL_LAST_FRAME and INIT_THREADSAFE as appropriate

Message ID 20171217220648.4777-1-aurel@gnuage.org
State Accepted
Commit 3f887440677328c9cfed97ad81d14051ffa32aae
Headers show

Commit Message

Aurelien Jacobs Dec. 17, 2017, 10:06 p.m. UTC
---
 libavcodec/aptx.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Rostislav Pehlivanov Dec. 18, 2017, 1:07 a.m. UTC | #1
On 17 December 2017 at 22:06, Aurelien Jacobs <aurel@gnuage.org> wrote:

> ---
>  libavcodec/aptx.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/libavcodec/aptx.c b/libavcodec/aptx.c
> index d09ce8f838..a35d2861c1 100644
> --- a/libavcodec/aptx.c
> +++ b/libavcodec/aptx.c
> @@ -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 },
> --
> 2.15.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>

Pushed
diff mbox

Patch

diff --git a/libavcodec/aptx.c b/libavcodec/aptx.c
index d09ce8f838..a35d2861c1 100644
--- a/libavcodec/aptx.c
+++ b/libavcodec/aptx.c
@@ -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 },