fftools/ffmpeg_opt: Improve alloc/truncation checks when reading lines
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sun, 5 Dec 2021 16:06:06 +0000 (17:06 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Tue, 7 Dec 2021 09:01:41 +0000 (10:01 +0100)
commit6fc0fc5441e00b2cbc28f5e5f7e2a8f97c73f822
treea961c2b4e6bc5a660fa1ce37ace07df2ed7b2426
parentf3a8d208c0826b57ab250fd716e23c54be689254
fftools/ffmpeg_opt: Improve alloc/truncation checks when reading lines

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