Commited in SoC by Bobby Bingham on 2007-07-14 17:34:04 Originally committed as revision 11986 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/avfilter.c (1 of 1 file). Show all
Unified · Split
| @@ -46,14 +46,14 @@ AVFilterPicRef *avfilter_default_get_video_buffer(AVFilterLink *link, int perms) · 45 unmodified lines | ||
| 46 | 46 | AVFilterPic *pic = av_mallocz(sizeof(AVFilterPic)); |
| 47 | 47 | AVFilterPicRef *ref = av_mallocz(sizeof(AVFilterPicRef)); |
| 48 | 48 | |
| 49 | − ref->pic = pic; | |
| 50 | − ref->w = link->w; | |
| 51 | − ref->h = link->h; | |
| 49 | + ref->pic = pic; | |
| 50 | + ref->w = link->w; | |
| 51 | + ref->h = link->h; | |
| 52 | 52 | ref->perms = perms; |
| 53 | 53 | |
| 54 | 54 | pic->refcount = 1; |
| 55 | − pic->format = link->format; | |
| 56 | − pic->free = avfilter_default_free_video_buffer; | |
| 55 | + pic->format = link->format; | |
| 56 | + pic->free = avfilter_default_free_video_buffer; | |
| 57 | 57 | avpicture_alloc((AVPicture *)pic, pic->format, ref->w, ref->h); |
| 58 | 58 | |
| 59 | 59 | memcpy(ref->data, pic->data, sizeof(pic->data)); |
| @@ -69,7 +69,7 @@ void avfilter_default_start_frame(AVFilterLink *link, AVFilterPicRef *picref) · 9 unmodified lines | ||
| 69 | 69 | link->cur_pic = picref; |
| 70 | 70 | |
| 71 | 71 | if(out) { |
| 72 | − out->outpic = avfilter_get_video_buffer(out, AV_PERM_WRITE); | |
| 72 | + out->outpic = avfilter_get_video_buffer(out, AV_PERM_WRITE); | |
| 73 | 73 | out->outpic->pts = picref->pts; |
| 74 | 74 | avfilter_start_frame(out, avfilter_ref_pic(out->outpic, ~0)); |
| 75 | 75 | } |
| @@ -136,10 +136,10 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad, · 60 unmodified lines | ||
| 136 | 136 | src->outputs[srcpad] = |
| 137 | 137 | dst->inputs[dstpad] = link = av_malloc(sizeof(AVFilterLink)); |
| 138 | 138 | |
| 139 | − link->src = src; | |
| 140 | − link->dst = dst; | |
| 141 | − link->srcpad = srcpad; | |
| 142 | − link->dstpad = dstpad; | |
| 139 | + link->src = src; | |
| 140 | + link->dst = dst; | |
| 141 | + link->srcpad = srcpad; | |
| 142 | + link->dstpad = dstpad; | |
| 143 | 143 | link->cur_pic = NULL; |
| 144 | 144 | |
| 145 | 145 | /* find a format both filters support - TODO: auto-insert conversion filter */ |