diff options
author | Andreas Rheinhardt <[email protected]> | 2019-09-20 22:39:15 +0200 |
---|---|---|
committer | James Almer <[email protected]> | 2019-09-28 18:32:44 -0300 |
commit | 5c95af6b7c8ea7fa700f91e9ab55ef2713b6f02f (patch) | |
tree | cf8bc7dcee3b04b06fde4807652f31f1b841b74e /doc/examples/http_multiclient.c | |
parent | cdba00ae113c94ef243bc238c64678c7bca82084 (diff) |
avformat/utils: Improve parsing packets
Up until now, parse_packet() used a stack packet in case the stream is
flushed. But using such a packet is unnecessary as there is an AVPacket
readily available, it just needs to be used. Whether flushing is intended
or not will now be signalled by an explicit parameter rather than by
whether the packet parameter is NULL. This removes a few checks in
parse_packet(), gets rid of the initialization of the stack packet and
also reduces usage of sizeof(AVPacket) in libavformat.
Signed-off-by: Andreas Rheinhardt <[email protected]>
Diffstat (limited to 'doc/examples/http_multiclient.c')
0 files changed, 0 insertions, 0 deletions