[FFmpeg-devel] [PATCH v2] avcodec/noise_bsf: move the reference in the bsf internal buffer

2018-03-21 Thread James Almer
There's no need to allocate a new packet for it. Signed-off-by: James Almer --- Now using av_packet_make_writable() to make sure the packet can be written to. libavcodec/noise_bsf.c | 25 + 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/libavcodec/noise_b

Re: [FFmpeg-devel] [PATCH v2] avcodec/noise_bsf: move the reference in the bsf internal buffer

2018-03-23 Thread Michael Niedermayer
On Wed, Mar 21, 2018 at 10:53:04PM -0300, James Almer wrote: > There's no need to allocate a new packet for it. > > Signed-off-by: James Almer > --- > Now using av_packet_make_writable() to make sure the packet can be > written to. > > libavcodec/noise_bsf.c | 25 + > 1

Re: [FFmpeg-devel] [PATCH v2] avcodec/noise_bsf: move the reference in the bsf internal buffer

2018-03-23 Thread James Almer
On 3/23/2018 10:24 PM, Michael Niedermayer wrote: > On Wed, Mar 21, 2018 at 10:53:04PM -0300, James Almer wrote: >> There's no need to allocate a new packet for it. >> >> Signed-off-by: James Almer >> --- >> Now using av_packet_make_writable() to make sure the packet can be >> written to. >> >> l