Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS.N. Hemanth Meenakshisundaram <smeenaks@ucsd.edu>2010-07-17 14:44:14 +0400
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-07-17 14:44:14 +0400
commitf0d77b2085153ce89ece899b962a7e6e3abb658f (patch)
treea0d1281ce77e4938e1188f8816c8b3119b82075f /libavfilter/defaults.c
parent0c733da8e2dc411afbc1e74f88890dcf15533553 (diff)
Rename AVFilterPic to AVFilterBuffer.
The struct is going to be used for audio data as well, so the new name is less misleading. Patch by S.N. Hemanth Meenakshisundaram smeenaks AT ucsd DOT edu. Originally committed as revision 24284 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/defaults.c')
-rw-r--r--libavfilter/defaults.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavfilter/defaults.c b/libavfilter/defaults.c
index f53ec2472a..e4218a818b 100644
--- a/libavfilter/defaults.c
+++ b/libavfilter/defaults.c
@@ -23,10 +23,10 @@
#include "avfilter.h"
/* TODO: buffer pool. see comment for avfilter_default_get_video_buffer() */
-static void avfilter_default_free_video_buffer(AVFilterPic *pic)
+static void avfilter_default_free_buffer(AVFilterBuffer *ptr)
{
- av_free(pic->data[0]);
- av_free(pic);
+ av_free(ptr->data[0]);
+ av_free(ptr);
}
/* TODO: set the buffer's priv member to a context structure for the whole
@@ -34,7 +34,7 @@ static void avfilter_default_free_video_buffer(AVFilterPic *pic)
* alloc & free cycle currently implemented. */
AVFilterPicRef *avfilter_default_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
{
- AVFilterPic *pic = av_mallocz(sizeof(AVFilterPic));
+ AVFilterBuffer *pic = av_mallocz(sizeof(AVFilterBuffer));
AVFilterPicRef *ref = av_mallocz(sizeof(AVFilterPicRef));
int i, tempsize;
char *buf;
@@ -48,7 +48,7 @@ AVFilterPicRef *avfilter_default_get_video_buffer(AVFilterLink *link, int perms,
pic->refcount = 1;
pic->format = link->format;
- pic->free = avfilter_default_free_video_buffer;
+ pic->free = avfilter_default_free_buffer;
ff_fill_linesize((AVPicture *)pic, pic->format, ref->w);
for (i=0; i<4;i++)