From: James Almer <jamrial@gmail.com> To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH 180/281] lavc: switch to the new channel layout API Date: Wed, 12 Jan 2022 23:02:13 -0300 Message-ID: <20220113020242.661-1-jamrial@gmail.com> (raw) In-Reply-To: <20220113015101.4-1-jamrial@gmail.com> From: Vittorio Giovara <vittorio.giovara@gmail.com> Since the request_channel_layout is used only by a handful of codecs, move the option to codec private contexts. Signed-off-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: James Almer <jamrial@gmail.com> --- libavcodec/avcodec.c | 82 +++++++++++++++++++++++++++++---- libavcodec/avcodec.h | 24 +++++++++- libavcodec/codec.h | 11 +++++ libavcodec/codec_par.c | 52 ++++++++++++++++----- libavcodec/decode.c | 94 ++++++++++++++++++++++++++++---------- libavcodec/encode.c | 36 ++++++++++++--- libavcodec/internal.h | 3 ++ libavcodec/options.c | 2 + libavcodec/options_table.h | 5 ++ libavcodec/pthread_frame.c | 10 +++- libavcodec/utils.c | 12 ++++- libavformat/demux.c | 2 +- 12 files changed, 278 insertions(+), 55 deletions(-) diff --git a/libavcodec/avcodec.c b/libavcodec/avcodec.c index c00a9b2af8..0436a6d0bd 100644 --- a/libavcodec/avcodec.c +++ b/libavcodec/avcodec.c @@ -119,7 +119,7 @@ static int64_t get_bit_rate(AVCodecContext *ctx) case AVMEDIA_TYPE_AUDIO: bits_per_sample = av_get_bits_per_sample(ctx->codec_id); if (bits_per_sample) { - bit_rate = ctx->sample_rate * (int64_t)ctx->channels; + bit_rate = ctx->sample_rate * (int64_t)ctx->ch_layout.nb_channels; if (bit_rate > INT64_MAX / bits_per_sample) { bit_rate = 0; } else @@ -137,6 +137,8 @@ static int64_t get_bit_rate(AVCodecContext *ctx) int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options) { int ret = 0; + int orig_channels; + uint64_t orig_channel_layout; AVCodecInternal *avci; if (avcodec_is_open(avctx)) @@ -247,12 +249,6 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code } } - if (avctx->channels > FF_SANE_NB_CHANNELS || avctx->channels < 0) { - av_log(avctx, AV_LOG_ERROR, "Too many or invalid channels: %d\n", avctx->channels); - ret = AVERROR(EINVAL); - goto free_and_end; - } - if (avctx->sample_rate < 0) { av_log(avctx, AV_LOG_ERROR, "Invalid sample rate: %d\n", avctx->sample_rate); ret = AVERROR(EINVAL); @@ -264,6 +260,38 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code goto free_and_end; } +#if FF_API_OLD_CHANNEL_LAYOUT +FF_DISABLE_DEPRECATION_WARNINGS + /* compat wrapper for old-style callers */ + if (avctx->channel_layout && !avctx->channels) + avctx->channels = av_popcount64(avctx->channel_layout); + + if ((avctx->channels && avctx->channels != avctx->ch_layout.nb_channels) || + (avctx->channel_layout && avctx->ch_layout.order != AV_CHANNEL_ORDER_NATIVE)) { + if (avctx->channel_layout) { + av_channel_layout_from_mask(&avctx->ch_layout, avctx->channel_layout); + } else { + avctx->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC; + avctx->ch_layout.nb_channels = avctx->channels; + } + } + + /* temporary compat wrapper for new-style callers and old-style codecs; + * to be removed once all the codecs have been converted */ + if (avctx->ch_layout.nb_channels) { + avctx->channels = avctx->ch_layout.nb_channels; + avctx->channel_layout = avctx->ch_layout.order == AV_CHANNEL_ORDER_NATIVE ? + avctx->ch_layout.u.mask : 0; + } +FF_ENABLE_DEPRECATION_WARNINGS +#endif + + if (avctx->ch_layout.nb_channels > FF_SANE_NB_CHANNELS) { + av_log(avctx, AV_LOG_ERROR, "Too many channels: %d\n", avctx->ch_layout.nb_channels); + ret = AVERROR(EINVAL); + goto free_and_end; + } + avctx->frame_number = 0; avctx->codec_descriptor = avcodec_descriptor_get(avctx->codec_id); @@ -317,6 +345,13 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code if (!HAVE_THREADS && !(codec->caps_internal & FF_CODEC_CAP_AUTO_THREADS)) avctx->thread_count = 1; +#if FF_API_OLD_CHANNEL_LAYOUT +FF_DISABLE_DEPRECATION_WARNINGS + orig_channels = avctx->channels; + orig_channel_layout = avctx->channel_layout; +FF_ENABLE_DEPRECATION_WARNINGS +#endif + if (!(avctx->active_thread_type & FF_THREAD_FRAME) || avci->frame_thread_encoder) { if (avctx->codec->init) { @@ -334,6 +369,26 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code if (av_codec_is_decoder(avctx->codec)) { if (!avctx->bit_rate) avctx->bit_rate = get_bit_rate(avctx); + +#if FF_API_OLD_CHANNEL_LAYOUT +FF_DISABLE_DEPRECATION_WARNINGS + /* decoder setting the old-style fields */ + if (avctx->channels != orig_channels || + avctx->channel_layout != orig_channel_layout) { + av_channel_layout_uninit(&avctx->ch_layout); + if (avctx->channel_layout) { + av_channel_layout_from_mask(&avctx->ch_layout, avctx->channel_layout); + } else { + avctx->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC; + avctx->ch_layout.nb_channels = avctx->channels; + } + } + + /* update the deprecated fields for old-style callers */ + avctx->channels = avctx->ch_layout.nb_channels; + avctx->channel_layout = avctx->ch_layout.order == AV_CHANNEL_ORDER_NATIVE ? + avctx->ch_layout.u.mask : 0; + /* validate channel layout from the decoder */ if (avctx->channel_layout) { int channels = av_get_channel_layout_nb_channels(avctx->channel_layout); @@ -358,6 +413,8 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code ret = AVERROR(EINVAL); goto free_and_end; } +FF_ENABLE_DEPRECATION_WARNINGS +#endif #if FF_API_AVCTX_TIMEBASE if (avctx->framerate.num > 0 && avctx->framerate.den > 0) @@ -484,9 +541,13 @@ av_cold int avcodec_close(AVCodecContext *avctx) av_bsf_free(&avci->bsf); + av_channel_layout_uninit(&avci->initial_ch_layout); + av_freep(&avctx->internal); } + av_channel_layout_uninit(&avctx->ch_layout); + for (i = 0; i < avctx->nb_coded_side_data; i++) av_freep(&avctx->coded_side_data[i].data); av_freep(&avctx->coded_side_data); @@ -666,7 +727,12 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) if (enc->sample_rate) { av_bprintf(&bprint, "%d Hz, ", enc->sample_rate); } - av_bprint_channel_layout(&bprint, enc->channels, enc->channel_layout); + { + char buf[512]; + int ret = av_channel_layout_describe(&enc->ch_layout, buf, sizeof(buf)); + if (ret >= 0) + av_bprintf(&bprint, "%s", buf); + } if (enc->sample_fmt != AV_SAMPLE_FMT_NONE && (str = av_get_sample_fmt_name(enc->sample_fmt))) { av_bprintf(&bprint, ", %s", str); diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index ec1a0566a4..8c72c77985 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -990,7 +990,15 @@ typedef struct AVCodecContext { /* audio only */ int sample_rate; ///< samples per second - int channels; ///< number of audio channels + +#if FF_API_OLD_CHANNEL_LAYOUT + /** + * number of audio channels + * @deprecated use ch_layout.nb_channels + */ + attribute_deprecated + int channels; +#endif /** * audio sample format @@ -1035,19 +1043,25 @@ typedef struct AVCodecContext { */ int cutoff; +#if FF_API_OLD_CHANNEL_LAYOUT /** * Audio channel layout. * - encoding: set by user. * - decoding: set by user, may be overwritten by libavcodec. + * @deprecated use ch_layout */ + attribute_deprecated uint64_t channel_layout; /** * Request decoder to use this channel layout if it can (0 for default) * - encoding: unused * - decoding: Set by user. + * @deprecated use "downmix" codec private option */ + attribute_deprecated uint64_t request_channel_layout; +#endif /** * Type of service that the audio stream conveys. @@ -2024,6 +2038,14 @@ typedef struct AVCodecContext { * - decoding: unused */ int (*get_encode_buffer)(struct AVCodecContext *s, AVPacket *pkt, int flags); + + /** + * Audio channel layout. + * - encoding: must be set by the caller, to one of AVCodec.ch_layouts. + * - decoding: may be set by the caller if known e.g. from the container. + * The decoder can then override during decoding as needed. + */ + AVChannelLayout ch_layout; } AVCodecContext; struct MpegEncContext; diff --git a/libavcodec/codec.h b/libavcodec/codec.h index a8147ec21f..204a558798 100644 --- a/libavcodec/codec.h +++ b/libavcodec/codec.h @@ -224,7 +224,13 @@ typedef struct AVCodec { const enum AVPixelFormat *pix_fmts; ///< array of supported pixel formats, or NULL if unknown, array is terminated by -1 const int *supported_samplerates; ///< array of supported audio samplerates, or NULL if unknown, array is terminated by 0 const enum AVSampleFormat *sample_fmts; ///< array of supported sample formats, or NULL if unknown, array is terminated by -1 +#if FF_API_OLD_CHANNEL_LAYOUT + /** + * @deprecated use ch_layouts instead + */ + attribute_deprecated const uint64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0 +#endif const AVClass *priv_class; ///< AVClass for the private context const AVProfile *profiles; ///< array of recognized profiles, or NULL if unknown, array is terminated by {FF_PROFILE_UNKNOWN} @@ -240,6 +246,11 @@ typedef struct AVCodec { */ const char *wrapper_name; + /** + * Array of supported channel layouts, terminated with a zeroed layout. + */ + const AVChannelLayout *ch_layouts; + /***************************************************************** * No fields below this line are part of the public API. They * may not be used outside of libavcodec and can be changed and diff --git a/libavcodec/codec_par.c b/libavcodec/codec_par.c index 9d43af1db4..052c64a315 100644 --- a/libavcodec/codec_par.c +++ b/libavcodec/codec_par.c @@ -125,11 +125,25 @@ int avcodec_parameters_from_context(AVCodecParameters *par, break; case AVMEDIA_TYPE_AUDIO: par->format = codec->sample_fmt; - if (codec->channel_layout) - av_channel_layout_from_mask(&par->ch_layout, codec->channel_layout); - else { - par->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC; - par->ch_layout.nb_channels = codec->channels; +#if FF_API_OLD_CHANNEL_LAYOUT +FF_DISABLE_DEPRECATION_WARNINGS + // if the old/new fields are set inconsistently, prefer the old ones + if ((codec->channels && codec->channels != codec->ch_layout.nb_channels) || + (codec->channel_layout && (codec->ch_layout.order != AV_CHANNEL_ORDER_NATIVE || + codec->ch_layout.u.mask != codec->channel_layout))) { + if (codec->channel_layout) + av_channel_layout_from_mask(&par->ch_layout, codec->channel_layout); + else { + par->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC; + par->ch_layout.nb_channels = codec->channels; + } +FF_ENABLE_DEPRECATION_WARNINGS + } else +#endif + if (codec->ch_layout.nb_channels) { + int ret = av_channel_layout_copy(&par->ch_layout, &codec->ch_layout); + if (ret < 0) + return ret; } #if FF_API_OLD_CHANNEL_LAYOUT FF_DISABLE_DEPRECATION_WARNINGS @@ -191,18 +205,32 @@ int avcodec_parameters_to_context(AVCodecContext *codec, break; case AVMEDIA_TYPE_AUDIO: codec->sample_fmt = par->format; +#if FF_API_OLD_CHANNEL_LAYOUT +FF_DISABLE_DEPRECATION_WARNINGS + // if the old/new fields are set inconsistently, prefer the old ones + if ((par->channels && par->channels != par->ch_layout.nb_channels) || + (par->channel_layout && (par->ch_layout.order != AV_CHANNEL_ORDER_NATIVE || + par->ch_layout.u.mask != par->channel_layout))) { + if (par->channel_layout) + av_channel_layout_from_mask(&codec->ch_layout, par->channel_layout); + else { + codec->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC; + codec->ch_layout.nb_channels = par->channels; + } +FF_ENABLE_DEPRECATION_WARNINGS + } else +#endif if (par->ch_layout.nb_channels) { - codec->channel_layout = par->ch_layout.order == AV_CHANNEL_ORDER_NATIVE ? - par->ch_layout.u.mask : 0; - codec->channels = par->ch_layout.nb_channels; + int ret = av_channel_layout_copy(&codec->ch_layout, &par->ch_layout); + if (ret < 0) + return ret; } #if FF_API_OLD_CHANNEL_LAYOUT - else { FF_DISABLE_DEPRECATION_WARNINGS - codec->channel_layout = par->channel_layout; - codec->channels = par->channels; + codec->channel_layout = codec->ch_layout.order == AV_CHANNEL_ORDER_NATIVE ? + codec->ch_layout.u.mask : 0; + codec->channels = codec->ch_layout.nb_channels; FF_ENABLE_DEPRECATION_WARNINGS - } #endif codec->sample_rate = par->sample_rate; codec->block_align = par->block_align; diff --git a/libavcodec/decode.c b/libavcodec/decode.c index 60127e95fc..6381ec68e1 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -359,10 +359,14 @@ static inline int decode_simple_internal(AVCodecContext *avctx, AVFrame *frame, if (ret >= 0 && got_frame) { if (frame->format == AV_SAMPLE_FMT_NONE) frame->format = avctx->sample_fmt; +#if FF_API_OLD_CHANNEL_LAYOUT +FF_DISABLE_DEPRECATION_WARNINGS if (!frame->channel_layout) frame->channel_layout = avctx->channel_layout; if (!frame->channels) frame->channels = avctx->channels; +FF_ENABLE_DEPRECATION_WARNINGS +#endif if (!frame->sample_rate) frame->sample_rate = avctx->sample_rate; } @@ -394,7 +398,7 @@ static inline int decode_simple_internal(AVCodecContext *avctx, AVFrame *frame, avci->skip_samples); } else { av_samples_copy(frame->extended_data, frame->extended_data, 0, avci->skip_samples, - frame->nb_samples - avci->skip_samples, avctx->channels, frame->format); + frame->nb_samples - avci->skip_samples, avctx->ch_layout.nb_channels, frame->format); if(avctx->pkt_timebase.num && avctx->sample_rate) { int64_t diff_ts = av_rescale_q(avci->skip_samples, (AVRational){1, avctx->sample_rate}, @@ -683,8 +687,17 @@ int attribute_align_arg avcodec_receive_frame(AVCodecContext *avctx, AVFrame *fr case AVMEDIA_TYPE_AUDIO: avci->initial_sample_rate = frame->sample_rate ? frame->sample_rate : avctx->sample_rate; - avci->initial_channels = frame->channels; +#if FF_API_OLD_CHANNEL_LAYOUT +FF_DISABLE_DEPRECATION_WARNINGS + avci->initial_channels = frame->ch_layout.nb_channels; avci->initial_channel_layout = frame->channel_layout; +FF_ENABLE_DEPRECATION_WARNINGS +#endif + ret = av_channel_layout_copy(&avci->initial_ch_layout, &frame->ch_layout); + if (ret < 0) { + av_frame_unref(frame); + return ret; + } break; } } @@ -698,10 +711,15 @@ int attribute_align_arg avcodec_receive_frame(AVCodecContext *avctx, AVFrame *fr avci->initial_height != frame->height; break; case AVMEDIA_TYPE_AUDIO: +FF_DISABLE_DEPRECATION_WARNINGS changed |= avci->initial_sample_rate != frame->sample_rate || avci->initial_sample_rate != avctx->sample_rate || +#if FF_API_OLD_CHANNEL_LAYOUT avci->initial_channels != frame->channels || - avci->initial_channel_layout != frame->channel_layout; + avci->initial_channel_layout != frame->channel_layout || +#endif + av_channel_layout_compare(&avci->initial_ch_layout, &frame->ch_layout); +FF_ENABLE_DEPRECATION_WARNINGS break; } @@ -1263,7 +1281,13 @@ static int update_frame_pool(AVCodecContext *avctx, AVFrame *frame) if (avctx->codec_type == AVMEDIA_TYPE_AUDIO) { int planar = av_sample_fmt_is_planar(frame->format); - ch = frame->channels; + ch = frame->ch_layout.nb_channels; +#if FF_API_OLD_CHANNEL_LAYOUT +FF_DISABLE_DEPRECATION_WARNINGS + if (!ch) + ch = frame->channels; +FF_ENABLE_DEPRECATION_WARNINGS +#endif planes = planar ? ch : 1; } @@ -1571,25 +1595,18 @@ int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame) frame->sample_rate = avctx->sample_rate; if (frame->format < 0) frame->format = avctx->sample_fmt; - if (!frame->channel_layout) { - if (avctx->channel_layout) { - if (av_get_channel_layout_nb_channels(avctx->channel_layout) != - avctx->channels) { - av_log(avctx, AV_LOG_ERROR, "Inconsistent channel " - "configuration.\n"); - return AVERROR(EINVAL); - } - - frame->channel_layout = avctx->channel_layout; - } else { - if (avctx->channels > FF_SANE_NB_CHANNELS) { - av_log(avctx, AV_LOG_ERROR, "Too many channels: %d.\n", - avctx->channels); - return AVERROR(ENOSYS); - } - } + if (!frame->ch_layout.nb_channels) { + int ret = av_channel_layout_copy(&frame->ch_layout, &avctx->ch_layout); + if (ret < 0) + return ret; } - frame->channels = avctx->channels; +#if FF_API_OLD_CHANNEL_LAYOUT +FF_DISABLE_DEPRECATION_WARNINGS + frame->channels = frame->ch_layout.nb_channels; + frame->channel_layout = frame->ch_layout.order == AV_CHANNEL_ORDER_NATIVE ? + frame->ch_layout.u.mask : 0; +FF_ENABLE_DEPRECATION_WARNINGS +#endif break; } return 0; @@ -1679,7 +1696,36 @@ int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags) goto fail; } } else if (avctx->codec_type == AVMEDIA_TYPE_AUDIO) { - if (frame->nb_samples * (int64_t)avctx->channels > avctx->max_samples) { +#if FF_API_OLD_CHANNEL_LAYOUT +FF_DISABLE_DEPRECATION_WARNINGS + /* temporary compat layer for decoders setting the old-style channel + * layout fields; shall be removed after all the decoders are converted + * to the new API */ + if ((avctx->channels > 0 && avctx->ch_layout.nb_channels != avctx->channels) || + (avctx->channel_layout && (avctx->ch_layout.order != AV_CHANNEL_ORDER_NATIVE || + avctx->ch_layout.u.mask != avctx->channel_layout))) { + av_channel_layout_uninit(&avctx->ch_layout); + if (avctx->channel_layout) { + if (av_popcount64(avctx->channel_layout) != avctx->channels) { + av_log(avctx, AV_LOG_ERROR, "Inconsistent channel layout/channels\n"); + ret = AVERROR(EINVAL); + goto fail; + } + av_channel_layout_from_mask(&avctx->ch_layout, avctx->channel_layout); + } else { + avctx->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC; + avctx->ch_layout.nb_channels = avctx->channels; + } + } + + /* compat layer for old-style get_buffer() implementations */ + avctx->channels = avctx->ch_layout.nb_channels; + avctx->channel_layout = (avctx->ch_layout.order == AV_CHANNEL_ORDER_NATIVE) ? + avctx->ch_layout.u.mask : 0; +FF_ENABLE_DEPRECATION_WARNINGS +#endif + + if (frame->nb_samples * (int64_t)avctx->ch_layout.nb_channels > avctx->max_samples) { av_log(avctx, AV_LOG_ERROR, "samples per frame %d, exceeds max_samples %"PRId64"\n", frame->nb_samples, avctx->max_samples); ret = AVERROR(EINVAL); goto fail; @@ -1789,7 +1835,7 @@ FF_DISABLE_DEPRECATION_WARNINGS FF_ENABLE_DEPRECATION_WARNINGS #endif - if (avctx->codec_type == AVMEDIA_TYPE_AUDIO && avctx->channels == 0 && + if (avctx->codec_type == AVMEDIA_TYPE_AUDIO && avctx->ch_layout.nb_channels == 0 && !(avctx->codec->capabilities & AV_CODEC_CAP_CHANNEL_CONF)) { av_log(avctx, AV_LOG_ERROR, "Decoder requires channel count but channels not set\n"); return AVERROR(EINVAL); diff --git a/libavcodec/encode.c b/libavcodec/encode.c index 618be0573d..f9f8879b8e 100644 --- a/libavcodec/encode.c +++ b/libavcodec/encode.c @@ -114,9 +114,10 @@ static int pad_last_frame(AVCodecContext *s, AVFrame *frame, const AVFrame *src) int ret; frame->format = src->format; - frame->channel_layout = src->channel_layout; - frame->channels = src->channels; frame->nb_samples = s->frame_size; + ret = av_channel_layout_copy(&frame->ch_layout, &s->ch_layout); + if (ret < 0) + goto fail; ret = av_frame_get_buffer(frame, 0); if (ret < 0) goto fail; @@ -126,11 +127,12 @@ static int pad_last_frame(AVCodecContext *s, AVFrame *frame, const AVFrame *src) goto fail; if ((ret = av_samples_copy(frame->extended_data, src->extended_data, 0, 0, - src->nb_samples, s->channels, s->sample_fmt)) < 0) + src->nb_samples, s->ch_layout.nb_channels, + s->sample_fmt)) < 0) goto fail; if ((ret = av_samples_set_silence(frame->extended_data, src->nb_samples, frame->nb_samples - src->nb_samples, - s->channels, s->sample_fmt)) < 0) + s->ch_layout.nb_channels, s->sample_fmt)) < 0) goto fail; return 0; @@ -419,7 +421,7 @@ int ff_encode_preinit(AVCodecContext *avctx) for (i = 0; avctx->codec->sample_fmts[i] != AV_SAMPLE_FMT_NONE; i++) { if (avctx->sample_fmt == avctx->codec->sample_fmts[i]) break; - if (avctx->channels == 1 && + if (avctx->ch_layout.nb_channels == 1 && av_get_planar_sample_fmt(avctx->sample_fmt) == av_get_planar_sample_fmt(avctx->codec->sample_fmts[i])) { avctx->sample_fmt = avctx->codec->sample_fmts[i]; @@ -467,7 +469,27 @@ int ff_encode_preinit(AVCodecContext *avctx) avctx->sample_rate); return AVERROR(EINVAL); } - if (avctx->codec->channel_layouts) { + if (avctx->codec->ch_layouts) { + if (!av_channel_layout_check(&avctx->ch_layout)) { + av_log(avctx, AV_LOG_WARNING, "Channel layout not specified correctly\n"); + return AVERROR(EINVAL); + } + + for (i = 0; avctx->codec->ch_layouts[i].nb_channels; i++) { + if (!av_channel_layout_compare(&avctx->ch_layout, &avctx->codec->ch_layouts[i])) + break; + } + if (!avctx->codec->ch_layouts[i].nb_channels) { + char buf[512]; + int ret = av_channel_layout_describe(&avctx->ch_layout, buf, sizeof(buf)); + if (ret > 0) + av_log(avctx, AV_LOG_ERROR, "Specified channel layout '%s' is not supported\n", buf); + return AVERROR(EINVAL); + } +FF_DISABLE_DEPRECATION_WARNINGS + } +#if FF_API_OLD_CHANNEL_LAYOUT + else if (avctx->codec->channel_layouts) { if (!avctx->channel_layout) { av_log(avctx, AV_LOG_WARNING, "Channel layout not specified\n"); } else { @@ -500,6 +522,8 @@ int ff_encode_preinit(AVCodecContext *avctx) avctx->channels); return AVERROR(EINVAL); } +FF_ENABLE_DEPRECATION_WARNINGS +#endif if(avctx->codec_type == AVMEDIA_TYPE_VIDEO) { const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(avctx->pix_fmt); if ( avctx->bits_per_raw_sample < 0 diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 72ca1553f6..51d827c1fe 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -208,8 +208,11 @@ typedef struct AVCodecInternal { int initial_format; int initial_width, initial_height; int initial_sample_rate; +#if FF_API_OLD_CHANNEL_LAYOUT int initial_channels; uint64_t initial_channel_layout; +#endif + AVChannelLayout initial_ch_layout; } AVCodecInternal; struct AVCodecDefault { diff --git a/libavcodec/options.c b/libavcodec/options.c index bba6078b62..c0b874fa05 100644 --- a/libavcodec/options.c +++ b/libavcodec/options.c @@ -187,7 +187,9 @@ static const AVOption frame_options[]={ {"width", "", FOFFSET(width), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, INT_MAX, 0}, {"height", "", FOFFSET(height), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, INT_MAX, 0}, {"format", "", FOFFSET(format), AV_OPT_TYPE_INT, {.i64 = -1 }, 0, INT_MAX, 0}, +#if FF_API_OLD_CHANNEL_LAYOUT {"channel_layout", "", FOFFSET(channel_layout), AV_OPT_TYPE_INT64, {.i64 = 0 }, 0, INT64_MAX, 0}, +#endif {"sample_rate", "", FOFFSET(sample_rate), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, INT_MAX, 0}, {NULL}, }; diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h index 130341a2ec..4dca85747e 100644 --- a/libavcodec/options_table.h +++ b/libavcodec/options_table.h @@ -89,7 +89,9 @@ static const AVOption avcodec_options[] = { {"time_base", NULL, OFFSET(time_base), AV_OPT_TYPE_RATIONAL, {.dbl = 0}, 0, INT_MAX}, {"g", "set the group of picture (GOP) size", OFFSET(gop_size), AV_OPT_TYPE_INT, {.i64 = 12 }, INT_MIN, INT_MAX, V|E}, {"ar", "set audio sampling rate (in Hz)", OFFSET(sample_rate), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, 0, INT_MAX, A|D|E}, +#if FF_API_OLD_CHANNEL_LAYOUT {"ac", "set number of audio channels", OFFSET(channels), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, 0, INT_MAX, A|D|E}, +#endif {"cutoff", "set cutoff bandwidth", OFFSET(cutoff), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, INT_MIN, INT_MAX, A|E}, {"frame_size", NULL, OFFSET(frame_size), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, 0, INT_MAX, A|E}, {"frame_number", NULL, OFFSET(frame_number), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, INT_MIN, INT_MAX}, @@ -262,8 +264,11 @@ static const AVOption avcodec_options[] = { {"mv0_threshold", NULL, OFFSET(mv0_threshold), AV_OPT_TYPE_INT, {.i64 = 256 }, 0, INT_MAX, V|E}, {"compression_level", NULL, OFFSET(compression_level), AV_OPT_TYPE_INT, {.i64 = FF_COMPRESSION_DEFAULT }, INT_MIN, INT_MAX, V|A|E}, {"bits_per_raw_sample", NULL, OFFSET(bits_per_raw_sample), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, 0, INT_MAX}, +{"ch_layout", NULL, OFFSET(ch_layout), AV_OPT_TYPE_CHLAYOUT, {.str = NULL }, 0, 0, A|E|D, "ch_layout"}, +#if FF_API_OLD_CHANNEL_LAYOUT {"channel_layout", NULL, OFFSET(channel_layout), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64 = DEFAULT }, 0, UINT64_MAX, A|E|D, "channel_layout"}, {"request_channel_layout", NULL, OFFSET(request_channel_layout), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64 = DEFAULT }, 0, UINT64_MAX, A|D, "request_channel_layout"}, +#endif {"rc_max_vbv_use", NULL, OFFSET(rc_max_available_vbv_use), AV_OPT_TYPE_FLOAT, {.dbl = 0 }, 0.0, FLT_MAX, V|E}, {"rc_min_vbv_use", NULL, OFFSET(rc_min_vbv_overflow_use), AV_OPT_TYPE_FLOAT, {.dbl = 3 }, 0.0, FLT_MAX, V|E}, {"ticks_per_frame", NULL, OFFSET(ticks_per_frame), AV_OPT_TYPE_INT, {.i64 = 1 }, 1, INT_MAX, A|V|E|D}, diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c index 85a6bc98c1..c051f43e4a 100644 --- a/libavcodec/pthread_frame.c +++ b/libavcodec/pthread_frame.c @@ -297,10 +297,18 @@ static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, dst->hwaccel = src->hwaccel; dst->hwaccel_context = src->hwaccel_context; - dst->channels = src->channels; dst->sample_rate = src->sample_rate; dst->sample_fmt = src->sample_fmt; +#if FF_API_OLD_CHANNEL_LAYOUT +FF_DISABLE_DEPRECATION_WARNINGS + dst->channels = src->channels; dst->channel_layout = src->channel_layout; +FF_ENABLE_DEPRECATION_WARNINGS +#endif + err = av_channel_layout_copy(&dst->ch_layout, &src->ch_layout); + if (err < 0) + return err; + dst->internal->hwaccel_priv_data = src->internal->hwaccel_priv_data; if (!!dst->hw_frames_ctx != !!src->hw_frames_ctx || diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 0505ea6ba2..373fb56357 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -805,8 +805,16 @@ static int get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba, int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes) { - int duration = get_audio_frame_duration(avctx->codec_id, avctx->sample_rate, - avctx->channels, avctx->block_align, + int channels = avctx->ch_layout.nb_channels; + int duration; +#if FF_API_OLD_CHANNEL_LAYOUT +FF_DISABLE_DEPRECATION_WARNINGS + if (!channels) + channels = avctx->channels; +FF_ENABLE_DEPRECATION_WARNINGS +#endif + duration = get_audio_frame_duration(avctx->codec_id, avctx->sample_rate, + channels, avctx->block_align, avctx->codec_tag, avctx->bits_per_coded_sample, avctx->bit_rate, avctx->extradata, avctx->frame_size, frame_bytes); diff --git a/libavformat/demux.c b/libavformat/demux.c index a9682a5949..c7710a5a7b 100644 --- a/libavformat/demux.c +++ b/libavformat/demux.c @@ -1946,7 +1946,7 @@ static int has_codec_parameters(const AVStream *st, const char **errmsg_ptr) FAIL("unspecified sample format"); if (!avctx->sample_rate) FAIL("unspecified sample rate"); - if (!avctx->channels) + if (!avctx->ch_layout.nb_channels) FAIL("unspecified number of channels"); if (sti->info->found_decoder >= 0 && !sti->nb_decoded_frames && avctx->codec_id == AV_CODEC_ID_DTS) FAIL("no decodable DTS frames"); -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2022-01-13 2:32 UTC|newest] Thread overview: 337+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-01-13 1:49 [FFmpeg-devel] [PATCH 000/281 v3] New " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 001/281] Add a new " James Almer 2022-01-13 14:08 ` Lynne 2022-01-16 11:27 ` Nicolas George 2022-01-16 22:54 ` Marton Balint 2022-01-17 13:22 ` James Almer 2022-01-17 20:18 ` Marton Balint 2022-01-17 20:27 ` James Almer 2022-01-17 13:53 ` Nicolas George 2022-01-17 13:54 ` James Almer 2022-01-17 13:56 ` Nicolas George 2022-01-17 14:02 ` James Almer 2022-01-17 16:50 ` Nicolas George 2022-01-17 16:52 ` James Almer 2022-01-17 16:54 ` Nicolas George 2022-01-17 16:57 ` James Almer 2022-01-17 17:55 ` Nicolas George 2022-01-17 13:32 ` James Almer 2022-01-17 13:51 ` Nicolas George 2022-01-17 14:12 ` James Almer 2022-01-17 16:48 ` Nicolas George 2022-01-17 16:50 ` James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 002/281] fate: add a channel_layout API test James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 003/281] lavu: support AVChannelLayout AVOptions James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 004/281] lavc: deprecate channel count/layout changing side data James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 005/281] avframe: switch to the new channel layout API James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 006/281] avcodecpar: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 007/281] lavf: add a temporary compat layer for the channel layout API change James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 008/281] lavf: convert the generic layer to the new channel layout James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 009/281] 3dostr: convert to new channel layout API James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 010/281] 4xm: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 011/281] aa: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 012/281] aax: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 013/281] ace: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 014/281] acm: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 015/281] act: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 016/281] adp: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 017/281] ads: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 018/281] adxdec: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 019/281] aea: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 020/281] afc: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 021/281] aiff: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 022/281] aixdec: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 023/281] alsa: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 024/281] alp: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 025/281] amr: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 026/281] amv: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 027/281] apc: " James Almer 2022-01-26 13:41 ` Anton Khirnov 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 028/281] ape: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 029/281] apm: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 030/281] aptxdec: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 031/281] argo: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 032/281] ast: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 033/281] au: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 034/281] avr: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 035/281] bethsoftvid: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 036/281] bfi: " James Almer 2022-01-13 1:49 ` [FFmpeg-devel] [PATCH 037/281] bink: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 038/281] bit: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 039/281] bmv: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 040/281] boa: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 041/281] brstm: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 042/281] caf: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 043/281] cdxl: " James Almer 2022-01-26 13:53 ` Anton Khirnov 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 044/281] codec2: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 045/281] dash: " James Almer 2022-01-26 13:56 ` Anton Khirnov 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 046/281] dcstr: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 047/281] derf: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 048/281] dhav: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 049/281] dtshddec: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 050/281] dsicin: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 051/281] dshow: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 052/281] dss: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 053/281] dsfdec: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 054/281] dv: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 055/281] eac: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 056/281] electronicarts: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 057/281] epafdec: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 058/281] flac: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 059/281] flic: " James Almer 2022-01-27 7:46 ` Anton Khirnov 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 060/281] flv: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 061/281] framehash: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 062/281] fsb: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 063/281] fwse: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 064/281] g722: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 065/281] g723_1: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 066/281] g726: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 067/281] g729: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 068/281] gdv: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 069/281] genh: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 070/281] gsm: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 071/281] gxf: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 072/281] hca: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 073/281] hcom: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 074/281] hls_sample_encryption: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 075/281] idcin: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 076/281] idroq: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 077/281] iff: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 078/281] ifv: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 079/281] ilbc: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 080/281] imx: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 081/281] ircam: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 082/281] ipmovie: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 083/281] iss: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 084/281] jack: port " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 085/281] jvdec: convert " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 086/281] kvag: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 087/281] avdevice/lavfi: " James Almer 2022-01-13 1:50 ` [FFmpeg-devel] [PATCH 088/281] libcdio: port " James Almer 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 089/281] lvf: convert " James Almer 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 090/281] lxfdec: " James Almer 2022-01-27 15:19 ` Tomas Härdin 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 091/281] matroska: " James Almer 2022-01-21 19:52 ` Andreas Rheinhardt 2022-01-21 20:20 ` James Almer 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 092/281] mca: " James Almer 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 093/281] mm: " James Almer 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 094/281] mmf: " James Almer 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 095/281] moflex: " James Almer 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 096/281] mov: " James Almer 2022-01-28 10:08 ` Anton Khirnov 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 097/281] movenc-test: " James Almer 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 098/281] mp3: " James Almer 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 099/281] mpc: " James Almer 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 100/281] mpc8: " James Almer 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 101/281] mpeg: " James Almer 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 102/281] mpegenc: " James Almer 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 103/281] mpegtsenc: " James Almer 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 104/281] msf: " James Almer 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 105/281] mtaf: " James Almer 2022-01-13 1:55 ` [FFmpeg-devel] [PATCH 106/281] musx: " James Almer 2022-01-13 1:56 ` [FFmpeg-devel] [PATCH 107/281] mvdec: " James Almer 2022-01-13 1:56 ` [FFmpeg-devel] [PATCH 108/281] mvi: " James Almer 2022-01-13 1:56 ` [FFmpeg-devel] [PATCH 109/281] mxf: " James Almer 2022-01-19 19:06 ` Tomas Härdin 2022-01-13 1:56 ` [FFmpeg-devel] [PATCH 110/281] mxg: " James Almer 2022-01-13 1:56 ` [FFmpeg-devel] [PATCH 111/281] nistspheredec: " James Almer 2022-01-13 1:56 ` [FFmpeg-devel] [PATCH 112/281] nspdec: " James Almer 2022-01-13 1:56 ` [FFmpeg-devel] [PATCH 113/281] nsvdec: " James Almer 2022-01-13 1:56 ` [FFmpeg-devel] [PATCH 114/281] nutdec: " James Almer 2022-01-13 1:56 ` [FFmpeg-devel] [PATCH 115/281] nuv: " James Almer 2022-01-13 1:56 ` [FFmpeg-devel] [PATCH 116/281] ogg: " James Almer 2022-01-13 1:56 ` [FFmpeg-devel] [PATCH 117/281] oma: " James Almer 2022-01-13 1:56 ` [FFmpeg-devel] [PATCH 118/281] oss: port " James Almer 2022-01-13 1:56 ` [FFmpeg-devel] [PATCH 119/281] paf: convert " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 089/281] lvf: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 120/281] pcm: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 121/281] pmp: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 122/281] pp_bnk: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 123/281] psxstr: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 124/281] pvf: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 125/281] qcp: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 126/281] r3d: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 127/281] rawenc: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 128/281] redspark: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 129/281] riff: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 130/281] rl2: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 131/281] rm: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 132/281] rpl: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 133/281] rsd: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 134/281] rso: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 135/281] rtp: " James Almer 2022-01-28 14:15 ` Anton Khirnov 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 136/281] sbg: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 137/281] scd: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 138/281] sdp: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 139/281] sdr2: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 140/281] sds: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 141/281] sdx: " James Almer 2022-01-13 1:57 ` [FFmpeg-devel] [PATCH 142/281] segafilm: " James Almer 2022-01-13 1:58 ` [FFmpeg-devel] [PATCH 143/281] sga: " James Almer 2022-01-13 1:58 ` [FFmpeg-devel] [PATCH 144/281] sierravmd: " James Almer 2022-01-13 1:58 ` [FFmpeg-devel] [PATCH 145/281] siff: " James Almer 2022-01-13 1:58 ` [FFmpeg-devel] [PATCH 146/281] smacker: " James Almer 2022-01-13 1:58 ` [FFmpeg-devel] [PATCH 147/281] smjpegenc: " James Almer 2022-01-13 1:58 ` [FFmpeg-devel] [PATCH 148/281] smoothstreaming: " James Almer 2022-01-13 1:58 ` [FFmpeg-devel] [PATCH 149/281] smush: " James Almer 2022-01-13 1:59 ` [FFmpeg-devel] [PATCH 089/281] lvf: " James Almer 2022-01-13 1:59 ` [FFmpeg-devel] [PATCH 150/281] sol: " James Almer 2022-01-13 1:59 ` [FFmpeg-devel] [PATCH 151/281] sox: " James Almer 2022-01-13 1:59 ` [FFmpeg-devel] [PATCH 152/281] svag: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 153/281] svs: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 154/281] swf: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 155/281] tak: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 156/281] thp: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 157/281] tiertexseq: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 158/281] tmv: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 159/281] tta: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 160/281] uncodedframecrcenc: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 161/281] vag: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 162/281] vividas: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 163/281] vivo: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 164/281] voc: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 165/281] vpk: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 166/281] vqf: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 167/281] wav: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 168/281] wc3movie: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 169/281] westwood: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 170/281] wtv: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 171/281] wv: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 172/281] xa: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 173/281] xmv: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 174/281] xwma: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 175/281] yop: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 176/281] wsd: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 177/281] wve: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 178/281] xvag: " James Almer 2022-01-13 2:00 ` [FFmpeg-devel] [PATCH 179/281] lavf: drop the channel layout compat layer for old-style (de)muxers James Almer 2022-01-13 2:02 ` James Almer [this message] 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 181/281] 8svx: convert to new channel layout API James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 182/281] aac: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 183/281] ac3: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 184/281] adpcm: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 185/281] adx: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 186/281] alac: " James Almer 2022-02-09 9:40 ` Anton Khirnov 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 187/281] als: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 188/281] amr: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 189/281] aptx: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 190/281] atrac1: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 191/281] atrac3: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 192/281] atrac3plus: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 193/281] atrac9: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 194/281] apedec: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 195/281] audiotoolbox: " James Almer 2022-02-21 14:22 ` Anton Khirnov 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 196/281] binkaudio: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 197/281] bmvaudio: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 198/281] cng: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 199/281] cook: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 200/281] dca: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 201/281] dolby_e: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 202/281] dpcm: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 203/281] dsd: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 204/281] dsicinav: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 205/281] dss_sp: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 206/281] dst: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 207/281] dvaudio: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 208/281] evrc: " James Almer 2022-01-13 2:02 ` [FFmpeg-devel] [PATCH 209/281] fastaudio: " James Almer 2022-01-13 2:04 ` [FFmpeg-devel] [PATCH 210/281] ffwavesynth: " James Almer 2022-01-13 2:04 ` [FFmpeg-devel] [PATCH 211/281] flac: " James Almer 2022-02-23 10:24 ` Anton Khirnov 2022-02-23 11:51 ` James Almer 2022-01-13 2:04 ` [FFmpeg-devel] [PATCH 212/281] g722: " James Almer 2022-01-13 2:04 ` [FFmpeg-devel] [PATCH 213/281] g723_1: " James Almer 2022-01-13 2:04 ` [FFmpeg-devel] [PATCH 214/281] g726: " James Almer 2022-01-13 2:04 ` [FFmpeg-devel] [PATCH 215/281] g729: " James Almer 2022-01-13 2:04 ` [FFmpeg-devel] [PATCH 216/281] gsmdec: " James Almer 2022-01-13 2:04 ` [FFmpeg-devel] [PATCH 217/281] hca: " James Almer 2022-01-13 2:04 ` [FFmpeg-devel] [PATCH 218/281] hcom: " James Almer 2022-01-13 2:04 ` [FFmpeg-devel] [PATCH 219/281] ilbc: " James Almer 2022-01-13 2:04 ` [FFmpeg-devel] [PATCH 220/281] imc: " James Almer 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 221/281] interplayacm: " James Almer 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 222/281] libcelt: " James Almer 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 223/281] libcodec2: " James Almer 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 224/281] libfdk-aac: " James Almer 2022-02-25 11:18 ` Anton Khirnov 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 225/281] libilbc: " James Almer 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 226/281] libgsm: " James Almer 2022-02-25 11:20 ` Anton Khirnov 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 227/281] libmp3lame: " James Almer 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 228/281] libopencore-amr: " James Almer 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 229/281] libopus: " James Almer 2022-02-25 11:46 ` Anton Khirnov 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 230/281] libshine: " James Almer 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 231/281] libspeexdec: " James Almer 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 232/281] libtwolame: " James Almer 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 233/281] libvo-amrwbenc: " James Almer 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 234/281] libvorbis: " James Almer 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 235/281] mace: " James Almer 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 236/281] metasound: " James Almer 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 237/281] mf: " James Almer 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 238/281] mlp: " James Almer 2022-01-13 2:05 ` [FFmpeg-devel] [PATCH 239/281] mpc7: " James Almer 2022-01-13 2:06 ` [FFmpeg-devel] [PATCH 240/281] mpc8: " James Almer 2022-01-13 2:06 ` [FFmpeg-devel] [PATCH 241/281] mpegaudio: " James Almer 2022-01-13 2:06 ` [FFmpeg-devel] [PATCH 242/281] nellymoser: " James Almer 2022-01-13 2:06 ` [FFmpeg-devel] [PATCH 243/281] on2avc: " James Almer 2022-01-13 2:06 ` [FFmpeg-devel] [PATCH 244/281] opus: " James Almer 2022-01-13 2:06 ` [FFmpeg-devel] [PATCH 245/281] pafaudio: " James Almer 2022-01-13 2:06 ` [FFmpeg-devel] [PATCH 246/281] pcm: " James Almer 2022-01-13 2:06 ` [FFmpeg-devel] [PATCH 247/281] qcelpdec: " James Almer 2022-01-13 2:06 ` [FFmpeg-devel] [PATCH 248/281] qdmc: " James Almer 2022-01-13 2:06 ` [FFmpeg-devel] [PATCH 249/281] qdm2: " James Almer 2022-01-13 2:06 ` [FFmpeg-devel] [PATCH 250/281] ra144: " James Almer 2022-01-13 2:06 ` [FFmpeg-devel] [PATCH 251/281] ra288: " James Almer 2022-01-13 2:06 ` [FFmpeg-devel] [PATCH 252/281] ralf: " James Almer 2022-01-13 2:06 ` [FFmpeg-devel] [PATCH 253/281] roqaudioenc: " James Almer 2022-01-13 2:06 ` [FFmpeg-devel] [PATCH 254/281] s302m: " James Almer 2022-01-13 2:06 ` [FFmpeg-devel] [PATCH 255/281] sbc: " James Almer 2022-01-13 2:07 ` [FFmpeg-devel] [PATCH 256/281] shorten: " James Almer 2022-01-13 2:07 ` [FFmpeg-devel] [PATCH 257/281] sipr: " James Almer 2022-01-13 2:07 ` [FFmpeg-devel] [PATCH 258/281] siren: " James Almer 2022-01-13 2:07 ` [FFmpeg-devel] [PATCH 259/281] smacker: " James Almer 2022-01-13 2:07 ` [FFmpeg-devel] [PATCH 260/281] sonic: " James Almer 2022-01-13 2:07 ` [FFmpeg-devel] [PATCH 261/281] speex: " James Almer 2022-01-13 2:07 ` [FFmpeg-devel] [PATCH 262/281] tak: " James Almer 2022-01-13 2:07 ` [FFmpeg-devel] [PATCH 263/281] truespeech: " James Almer 2022-01-13 2:07 ` [FFmpeg-devel] [PATCH 264/281] tta: " James Almer 2022-01-13 2:07 ` [FFmpeg-devel] [PATCH 265/281] twinvq: " James Almer 2022-01-13 2:07 ` [FFmpeg-devel] [PATCH 266/281] vima: " James Almer 2022-01-13 2:07 ` [FFmpeg-devel] [PATCH 267/281] vmdaudio: " James Almer 2022-01-13 2:07 ` [FFmpeg-devel] [PATCH 268/281] vorbis: " James Almer 2022-01-13 2:07 ` [FFmpeg-devel] [PATCH 269/281] wavpack: " James Almer 2022-03-07 10:42 ` Anton Khirnov 2022-01-13 2:09 ` [FFmpeg-devel] [PATCH 270/281] wma: " James Almer 2022-03-07 10:26 ` Anton Khirnov 2022-01-13 2:09 ` [FFmpeg-devel] [PATCH 271/281] ws-snd1: " James Almer 2022-01-13 2:09 ` [FFmpeg-devel] [PATCH 272/281] lavc: drop temporary compat wrappers for channel layout API change James Almer 2022-01-13 2:09 ` [FFmpeg-devel] [PATCH 273/281] lavf: Add non diegetic stream disposition flag James Almer 2022-01-13 2:09 ` [FFmpeg-devel] [PATCH 274/281] swresample: convert to new channel layout API James Almer 2022-01-19 17:20 ` Andreas Rheinhardt 2022-01-19 17:29 ` James Almer 2022-01-13 2:09 ` [FFmpeg-devel] [PATCH 275/281] avfilter: " James Almer 2022-02-14 15:49 ` Anton Khirnov 2022-02-15 11:50 ` Anton Khirnov 2022-02-15 12:27 ` James Almer 2022-02-15 12:34 ` Anton Khirnov 2022-02-15 18:52 ` James Almer 2022-02-16 18:15 ` Anton Khirnov 2022-02-18 13:07 ` James Almer 2022-01-13 2:09 ` [FFmpeg-devel] [PATCH 276/281] avdevice/lavfi: remove call to deprecated function av_buffersink_get_channel_layout() James Almer 2022-01-13 2:09 ` [FFmpeg-devel] [PATCH 277/281] ffmpeg: convert to new channel layout-API James Almer 2022-01-13 18:29 ` Michael Niedermayer 2022-01-13 18:40 ` James Almer 2022-01-13 19:44 ` James Almer 2022-01-15 13:47 ` Michael Niedermayer 2022-01-15 16:04 ` James Almer 2022-01-13 2:09 ` [FFmpeg-devel] [PATCH 278/281] ffprobe: " James Almer 2022-01-13 2:09 ` [FFmpeg-devel] [PATCH 279/281] channel_layout: add support for Ambisonic James Almer 2022-01-13 2:09 ` [FFmpeg-devel] [PATCH 280/281] opus: export mapping family 2 (Ambisonic) as Ambisonic layout James Almer 2022-01-13 2:09 ` [FFmpeg-devel] [PATCH 281/281] mov: Implement spatial audio support James Almer
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220113020242.661-1-jamrial@gmail.com \ --to=jamrial@gmail.com \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git