fftools/ffmpeg: Avoid allocating+freeing frame, check allocations
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Fri, 3 Dec 2021 19:30:33 +0000 (20:30 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sun, 5 Dec 2021 12:27:38 +0000 (13:27 +0100)
commitb886512ef2503fc585c302484be71475d3100480
treea86810192d46f5c0fd692aaf8cce0b9dae863ebf
parent2d0bfbd0fafe5e869919120758903801f91530fa
fftools/ffmpeg: Avoid allocating+freeing frame, check allocations

Fixes a potential crash upon av_frame_alloc() failure.

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