[FFmpeg-devel] [PATCH] vsrc_buffer: remove dependency on AVFrame

Stefano Sabatini stefano.sabatini-lala at poste.it
Thu May 19 12:29:18 CEST 2011


On date Saturday 2011-05-14 15:05:12 +0200, Stefano Sabatini encoded:
> On date Saturday 2011-05-14 13:33:40 +0200, Michael Niedermayer encoded:
> > On Sat, May 14, 2011 at 12:04:45PM +0200, Stefano Sabatini wrote:
[...]
> > > > > What about:
> > > > > 
> > > > > av_vsrc_buffer_add_frame2(ost->input_video_filter, avfilter_get_video_buffer_ref_from_frame(frame, perm), "");
> > > > > ?
> > > > 
> > > > this looks much better
> 
> I didn't consider that the picref needs to be unreffed, new patches
> without memleak (and two lines of more code for freeing the allocated
> picref without to free the frame data, which is managed by the
> decoder).

New patchset, I'm adding another wrapper function for directly pushing
AVFrame data.
-- 
FFmpeg = Freak and Fierce Miracolous Plastic Exuberant Gargoyle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-vsrc_buffer-remove-dependency-on-AVFrame.patch
Type: text/x-diff
Size: 8321 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110519/8fd206e0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-lavfi-add-avfilter_get_video_buffer_ref_from_frame-t.patch
Type: text/x-diff
Size: 2991 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110519/8fd206e0/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-vsrc_buffer-make-the-source-accept-sws_param-in-init.patch
Type: text/x-diff
Size: 6030 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110519/8fd206e0/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-vsrc_buffer-add-av_vsrc_buffer_add_frame.patch
Type: text/x-diff
Size: 3188 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110519/8fd206e0/attachment-0003.bin>


More information about the ffmpeg-devel mailing list