- 19 Oct, 2019 1 commit
-
-
Andreas Rheinhardt authored
They are identical now. Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 17 Oct, 2019 1 commit
-
-
Andreas Rheinhardt authored
1. Since bd90a2ec, mpeg4_unpack_bframes caches whole packets instead of just the pointer to the buffer and the buffer's size in order to be able to make use of refcounting to avoid copying of data; this unfortunately introduced copies of packet structures and side data (if existing), although the only fields that are needed are the buffer-related ones (data, size and buf). This can be changed without compromising the advantages of refcounting by storing a reference to the buffer. 2. This change also makes it easy to use only one packet throughout so that an allocation and free of an AVPacket structure per filtered packet can be saved by switching to ff_bsf_get_packet_ref. 3. Furthermore, this commit also fixes a memleak introduced in bd90a2ec: If a stored b_frame with side data was used for a later frame, the side data would leak when the input frame's properties were copied into the output frame. Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 04 Feb, 2019 1 commit
-
-
Andreas Rheinhardt authored
instead of an ad-hoc function to search for start codes in order to remove code duplication and to improve performance. Improved performance of finding startcodes from 52606 decicycles to 9543 decicycles based upon 262144 runs for a 1 Mb/s MPEG4 video. Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@googlemail.com> Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 17 Aug, 2018 1 commit
-
-
James Almer authored
Signed-off-by:
James Almer <jamrial@gmail.com>
-
- 25 Apr, 2018 1 commit
-
-
James Almer authored
Avoids unnecessary allocs+copies and makes the code slightly simpler. Signed-off-by:
James Almer <jamrial@gmail.com>
-
- 22 Mar, 2018 1 commit
-
-
James Almer authored
Nothing currently guarantees that the packet passed to the bsf will be writable. Reviewed-by:
Michael Niedermayer <michael@niedermayer.cc> Signed-off-by:
James Almer <jamrial@gmail.com>
-
- 20 Mar, 2018 1 commit
-
-
James Almer authored
Also fixes one potential leak of side data in out if the av_packet_from_data() call fails. Reviewed-by:
Michael Niedermayer <michael@niedermayer.cc> Signed-off-by:
James Almer <jamrial@gmail.com>
-
- 22 Jul, 2016 2 commits
-
-
Jan Sebechlebsky authored
Signed-off-by:
Jan Sebechlebsky <sebechlebskyjan@gmail.com> Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
Jan Sebechlebsky authored
mpeg4_unpack_bframes_bsf bitstream filters constructs resulting packet using av_packet_from_data() function. This function however modifies only buffer (data) and leaves other fields untouched, so the content of other fields of the output packet is undefined. It is working with old BSF API, since old API filters just data and the packet fields are copied in av_apply_bitstream_filters from input packet. This change fixes the behaviour for the new BSF API. Signed-off-by:
Jan Sebechlebsky <sebechlebskyjan@gmail.com> Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 05 Apr, 2015 1 commit
-
-
Andreas Cadhalpun authored
Fixes Ticket #2913 Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-