You could just call ff_filter_process_command() instead of hardcoding supported commands here. It will ignore any option without the AV_OPT_FLAG_RUNTIME_PARAM flag.


This is going to generate memleaks, and needlessly reallocate unrelated buffers. You should instead av_realloc all four s->bboxes buffers here, and reset s->limit.

I don't have knowledge in c/c++, I based my changes on vf_crop.c, but i will look into your suggestions.

_______________________________________________
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".

Reply via email to