2019-04-10 5:37 GMT+02:00, Jarek Samic <cldfi...@gmail.com>: > + // Make sure the input is a format we support > + if (fmt != AV_PIX_FMT_ARGB && > + fmt != AV_PIX_FMT_RGBA && > + fmt != AV_PIX_FMT_ABGR && > + fmt != AV_PIX_FMT_BGRA && > + fmt != AV_PIX_FMT_NONE > + ) { > + av_log(avctx, AV_LOG_ERROR, "unsupported (non-RGB) format in > colorkey_opencl.\n"); > + err = AVERROR(ENOSYS); > + goto fail; > + }
I would have expected that you export a list of supported pix_fmts and that you can assert on the actual format being one of them (if you need to). Carl Eugen _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".