2018-12-27 22:02 GMT+01:00, Uwe Freese <uwe.fre...@gmx.de>: > Am 27.12.18 um 20:25 schrieb Carl Eugen Hoyos: >> >>> I have now added as error handling: >>> >>> av_log(inlink->src, AV_LOG_ERROR, "More planes in frame than >>> expected.\n"); >>> return AVERROR(ENOMEM); >>> >>> Is this ok, or how should this be implemented instead? >> >> Not sure I understand: How can plane get >= MAX_PLANES? >> If this is impossible (as I believe), please use av_assert0(). > > I meant the use of "ENOMEM" and if there's a better error > constant to use here. > > At this line, the error is not about memory, but that the video input > format is unexpected.
Is there a format with too many planes? If not, please use an assert, do not return an error. Carl Eugen _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel