aboutsummaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-09-20 22:39:16 +0200
committerJames Almer <jamrial@gmail.com>2019-09-28 18:32:44 -0300
commit9fdc2c7bc45b062457f3d58578e3a02dd945c9c4 (patch)
treed2b325d3bc24e55503a707698745e887426c521c /.gitignore
parent5c95af6b7c8ea7fa700f91e9ab55ef2713b6f02f (diff)
downloadffmpeg-9fdc2c7bc45b062457f3d58578e3a02dd945c9c4.tar.gz
avformat/utils: Remove unnecessary initializations
Up until now, read_frame_internal always initialized the packet it received. But since the recent changes to ff_read_packet, this is no longer needed: If the parsing queue is initially empty upon entering read_frame_internal, the packet will now either contain content upon success or be blank upon failure of ff_read_packet. If the parsing queue is initially not empty, the packet will be overwritten with the oldest one from the parsing queue. Similarly, it is unnecessary to initialize ret in read_frame_internal. In parse_packet, it is easily possible to only initialize the packet used as temporary storage for the output if said packet is used at all; furthermore, this packet doesn't need to be zero-initialized, because av_init_packet will initialize every field except size and data and those fields will be set by av_parser_parse2. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions