1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00
FFmpeg/libavformat
Andreas Rheinhardt 47a4528abc avformat/utils: Don't initialize in loops
Since the recent changes to ff_packet_list_put, the source packet will
be automatically reset when the reference is moved to the packet list,
so that it is unnecessary to reinitialize the packet in the loops in
parse_packet and ff_read_packet; initializing once at the beginning is
enough.

This also fixes a potential, but currently unexisting problem: If the
raw packet buffer was initially not empty and probe_codec() failed,
then the packet returned would not be initialized. But given that
probe_codec() currently can't fail (always returns 0) this was not an
acute danger.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2019-09-28 18:32:43 -03:00
..
2019-05-20 11:58:12 -07:00
2019-05-20 11:58:12 -07:00
2018-05-06 15:07:28 +08:00
2019-08-13 15:38:57 +02:00
2019-03-20 18:38:48 +01:00
2019-08-23 22:24:07 +02:00
2019-05-20 11:58:12 -07:00
2019-09-02 23:08:43 +02:00
2019-08-15 01:26:21 +02:00
2019-05-20 11:58:12 -07:00
2019-09-27 12:15:50 +02:00
2019-09-02 23:08:43 +02:00
2018-05-21 19:43:04 -03:00
2018-05-21 19:43:04 -03:00
2019-03-20 18:38:48 +01:00
2019-06-14 21:36:39 +02:00
2019-06-29 19:22:19 +02:00
2019-07-14 22:17:43 +02:00