Re: [FFmpeg-devel] [FFmpeg-cvslog] lavf/latmenc: Error out for unsupported codecs.

2019-03-27 Thread Carl Eugen Hoyos
2019-03-21 10:06 GMT+01:00, Nicolas George : > Carl Eugen Hoyos (12019-03-20): >> +if (par->codec_id != AV_CODEC_ID_AAC && par->codec_id != >> AV_CODEC_ID_MP4ALS) { >> +av_log(ctx, AV_LOG_ERROR, "Only AAC, LATM and ALS are >> supported\n"); >> +return AVERROR_INVALIDDATA; >> +

Re: [FFmpeg-devel] [FFmpeg-cvslog] lavf/latmenc: Error out for unsupported codecs.

2019-03-21 Thread James Almer
On 3/21/2019 6:06 AM, Nicolas George wrote: > Carl Eugen Hoyos (12019-03-20): >> +if (par->codec_id != AV_CODEC_ID_AAC && par->codec_id != >> AV_CODEC_ID_MP4ALS) { >> +av_log(ctx, AV_LOG_ERROR, "Only AAC, LATM and ALS are supported\n"); >> +return AVERROR_INVALIDDATA; >> +}

Re: [FFmpeg-devel] [FFmpeg-cvslog] lavf/latmenc: Error out for unsupported codecs.

2019-03-21 Thread Nicolas George
Carl Eugen Hoyos (12019-03-20): > +if (par->codec_id != AV_CODEC_ID_AAC && par->codec_id != > AV_CODEC_ID_MP4ALS) { > +av_log(ctx, AV_LOG_ERROR, "Only AAC, LATM and ALS are supported\n"); > +return AVERROR_INVALIDDATA; > +} I think EINVAL is more correct in this kind of ca