Hi, Le 7 juin 2024 06:33:20 GMT+03:00, Shiqi Zhu <hiccup...@gmail.com> a écrit : >> Initialization and render in the same thread is one of the issues. Another >> issue is SDL render should be run in main thread. Maybe it’s not the >> duty of this filter to control which thread to be called, but this wouldn’t >> work with ffmpeg cmd. >> >Yes, I agree with your opinion. The control of the filter should be >left to the application, and the ffmpeg command should only serve the >purpose of demonstrating functionality.
You can't require running on the main thread. There are no ifs or buts here; libavfilter simply can't require that from the calling application or upper-layer framework and therefore it also can't warrant it to SDL. SDL is meant to be used by programs, notably games, not middleware thread-agnostic libraries like FFmpeg's libav*. I don't think that there is a point arguing *again*. _______________________________________________ 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".