diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-01 14:47:05 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-12-25 16:18:57 +0100 |
commit | 1c9e340d35351858907f11c45b2691db708f3903 (patch) | |
tree | b707c4c421cf7fd6caa5186b405ee4662ef46ec2 /libavfilter/avfilter.h | |
parent | 8a4a5f6ff756fdba44254015c714f173b2db6f64 (diff) | |
download | ffmpeg-streaming-1c9e340d35351858907f11c45b2691db708f3903.zip ffmpeg-streaming-1c9e340d35351858907f11c45b2691db708f3903.tar.gz |
lavfi: add avfilter_copy_frame_props()
avfilter_copy_frame_props() avoids code duplication and increases
robustness.
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r-- | libavfilter/avfilter.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index e0c664d..a5cc8b2 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -27,6 +27,7 @@ #include "libavutil/samplefmt.h" #include "libavutil/pixfmt.h" #include "libavutil/rational.h" +#include "libavcodec/avcodec.h" #define LIBAVFILTER_VERSION_MAJOR 2 #define LIBAVFILTER_VERSION_MINOR 13 @@ -862,4 +863,12 @@ static inline void avfilter_insert_outpad(AVFilterContext *f, unsigned index, &f->output_pads, &f->outputs, p); } +/** + * Copy the frame properties of src to dst, without copying the actual + * image data. + * + * @return 0 on success, a negative number on error. + */ +int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src); + #endif /* AVFILTER_AVFILTER_H */ |