diff options
author | S.N. Hemanth Meenakshisundaram <smeenaks@ucsd.edu> | 2010-08-11 19:25:42 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-11 19:25:42 +0400 |
commit | c1db7bff66182d9e3fe48b122345ef92f011ae39 (patch) | |
tree | e2b5c88a17686037894e95e9a0dca2de858dc8c7 /libavfilter/vsrc_buffer.c | |
parent | e1f4dd6d41f2ef8cd6db444a3b70946d7a1e29a9 (diff) |
Resize data and linesize in AVFilterBufferRef to 8.
This is required to make AVFilterBufferRef able to contain also audio
data, required by audio filtering integration.
Patch by S.N. Hemanth Meenakshisundaram smeen?ks@ucsd.ed?.
Originally committed as revision 24773 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/vsrc_buffer.c')
-rw-r--r-- | libavfilter/vsrc_buffer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c index f4761f9334..03cf5ecdef 100644 --- a/libavfilter/vsrc_buffer.c +++ b/libavfilter/vsrc_buffer.c @@ -119,8 +119,9 @@ static int request_frame(AVFilterLink *link) AV_PERM_REUSE2, link->w, link->h); - av_picture_copy((AVPicture *)&picref->data, (AVPicture *)&c->frame, - picref->format, link->w, link->h); + av_picture_data_copy(picref->data, picref->linesize, + c->frame.data, c->frame.linesize, + picref->format, link->w, link->h); picref->pts = c->pts; picref->video->pixel_aspect = c->pixel_aspect; |