summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-14 11:46:14 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-19 23:15:33 +0200
commit9fdf77217b39646afdb8907b977e3d7a59f1cb9e (patch)
tree166faedba1db3476bd48b0d48840f5fa477f7c5e /ffmpeg.c
parent6070b7e1c520e9ca389403bae20a2ad04c7d54c7 (diff)
lavfi: add avfilter_get_video_buffer_ref_from_frame to avcodec.h
Simplify passing AVFrame data to av_vsrc_buffer_add_video_buffer_ref().
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 340a947dd8..d4c7705a09 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1650,11 +1650,9 @@ static int output_packet(AVInputStream *ist, int ist_index,
picture.sample_aspect_ratio = ist->st->sample_aspect_ratio;
picture.pts = ist->pts;
- picref = avfilter_get_video_buffer_ref_from_arrays(
- picture.data, picture.linesize, AV_PERM_WRITE,
- picture.width, picture.height, picture.format);
- avfilter_copy_frame_props(picref, &picture);
- av_vsrc_buffer_add_video_buffer_ref2(ost->input_video_filter, picref, ""); //TODO user setable params
+ picref =
+ avfilter_get_video_buffer_ref_from_frame(&picture, AV_PERM_WRITE);
+ av_vsrc_buffer_add_video_buffer_ref(ost->input_video_filter, picref, ""); //TODO user setable params
picref->buf->data[0] = NULL;
avfilter_unref_buffer(picref);
}