James Almer
e61d8b82a2
avcodec/encode: use av_packet_make_refcounted to ensure packets are ref counted
...
Simplifies code.
Signed-off-by: James Almer <jamrial@gmail.com>
2018-04-01 23:40:42 -03:00
James Almer
d2484639bc
Merge commit '48bb0da050329e5111b00a12dfc154b7e78fb3a3'
...
* commit '48bb0da050329e5111b00a12dfc154b7e78fb3a3':
lavc: Drop deprecated way of setting audio delay on encode
Merged-by: James Almer <jamrial@gmail.com>
2017-10-23 16:38:04 -03:00
James Almer
87e625c263
avcodec/encode: do proper cleanup on failure
...
Fixes the last remaining memleaks introduced by a22c6a4796
.
Signed-off-by: James Almer <jamrial@gmail.com>
2017-10-03 14:00:27 -03:00
James Almer
712ee85816
avcodec/encode: free non-referenced packets' side data in the old encode API functions
...
Fixes memleaks introduced by a22c6a4796
.
2017-10-02 18:58:53 -03:00
James Almer
a22c6a4796
avcodec/encode: remove usage of av_dup_packet()
...
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2017-10-02 11:14:57 -03:00
Muhammad Faiz
31f61b0d4f
avcodec: do not use AVFrame accessor
...
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
2017-04-23 14:27:47 +07:00
James Almer
bd9057e74b
Merge commit '328cd2b599bc2d0d38f3c12606fa2a66eeec016e'
...
* commit '328cd2b599bc2d0d38f3c12606fa2a66eeec016e':
lavc: move encoding-related code from utils.c to a new file
Merged-by: James Almer <jamrial@gmail.com>
2017-04-07 00:42:38 -03:00
Vittorio Giovara
48bb0da050
lavc: Drop deprecated way of setting audio delay on encode
...
Deprecated in 08/2014.
2017-03-23 10:09:16 +01:00
Anton Khirnov
328cd2b599
lavc: move encoding-related code from utils.c to a new file
2016-11-29 10:39:20 +01:00