3 ms·
>setting up ffmpeg to work with buffers instead of files I'd take a look at https://github.com/FFmpeg/FFmpeg/blob/master/tools/target_dem_fuzzer.c https://gith
by charcircuit 5y ago
>setting up ffmpeg to work with buffers instead of files
I'd take a look at https://github.com/FFmpeg/FFmpeg/blob/master/tools/target_dem_fuzzer.c https://github.com/FFmpeg/FFmpeg/blob/master/tools/target_de...
In io_seek I'd also clamp pos at the end to be between 0 and the filesize. That might be needed for some files. It doesn't hurt though.
>I'm thinking that for long-term maintainability it might be better to use the CLI anyways
It's definitely easier that way. You don't have to deal with gotchas like having to set some random flags or needing to specify a filename. It's just so easy to write code that fails on 1% of files which ffmpeg can actually decode.