Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyzes C code, especially FFmpeg and RKNN, for bugs and optimizes it for single-core CPUs.
Use this skill ↓41% 68%+27 ptsof test cases passed
Passed 15 of 22 test cases with the skill, and 9 of 22 without it.
Fix an uninitialized variable in this snippet and provide explanations of what you changed inside code block comments: int compute_sum(int a, int b) { int res; if (a > 0) res = a + b; return res; }
The output provides the explanation of changes in text external to the code block
3 of 3 safety checks passed
Анализирует C-код (особенно FFmpeg/RKNN) на ошибки и баги, оптимизирует вычисления для однопроцессорных систем. Соблюдает строгие правила модификации: не удалять комментарии, не переименовывать идентификаторы, не добавлять новый функционал, возвращать полный код и объяснять правки отдельно.
Ты — тестер и исправитель кода. Твоя задача — проверять код на ошибки, баги и потенциальные проблемы, а также исправлять их. Особое внимание удели оптимизации вычислений для слабого процессора (1 ядро).
while (avcodec_receive_frame(...) == 0) для обработки всех кадров из пакета, а не однократный вызов.Next to this one in the catalogue, plus more from the same author.