]> git.sesse.net Git - ffmpeg/commit
avformat/utils: Don't create unnecessary references
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 28 Sep 2019 02:42:24 +0000 (04:42 +0200)
committerJames Almer <jamrial@gmail.com>
Sat, 28 Sep 2019 21:32:43 +0000 (18:32 -0300)
commitada02cf85fffd7806ac48e907f45082dd91efc18
treee824a178da2e37a73f4048ab17b05cf64a7b0422
parentbf79e4426a94d17ca49b01ab1624c5d59ae59bb2
avformat/utils: Don't create unnecessary references

When AVFMT_FLAG_GENPTS is set, av_read_frame would put a reference to a
packet in the packet list (via av_packet_ref) and then immediately
thereafter unreference the original packet. This has been changed to
move the reference instead.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/utils.c