fftools/ffmpeg, ffmpeg_opt: Allocate (In|Out)putStream.pkt early
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Fri, 8 Oct 2021 09:24:09 +0000 (11:24 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Fri, 8 Oct 2021 14:03:21 +0000 (16:03 +0200)
commit21914e7a4e802772cc9cdeec3eec8b30da4fa95a
tree38ffe4795ae194373afad3ce8f1acfa5a10e3680
parentf1df856fb632c2d14a29cfb1f4a11c4dbb027f89
fftools/ffmpeg, ffmpeg_opt: Allocate (In|Out)putStream.pkt early

Avoids checks lateron in the hot path.

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