fftools/ffmpeg_opt: Improve checks for truncation/alloc error
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Wed, 1 Dec 2021 19:31:27 +0000 (20:31 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Tue, 7 Dec 2021 09:01:34 +0000 (10:01 +0100)
commitf3a8d208c0826b57ab250fd716e23c54be689254
treebba557aa1b238c247ac8ee7a097abe32df527f91
parent3f3772e4443c980b65e80859fdaaf3970f6c7fe4
fftools/ffmpeg_opt: Improve checks for truncation/alloc error

Do this by switching from the dynamic buffer API to the AVBPrint API;
the former has no defined way to check for errors.
This also avoids allocating an AVIOContext.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
fftools/ffmpeg_opt.c