mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
lavfi: uninline avfilter_copy_buffer_ref_props().
A nontrivial public function such as this should most certainly NOT be inline.
This commit is contained in:
parent
1432c1c429
commit
8134fafe9b
@ -707,3 +707,16 @@ int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *src)
|
||||||
|
{
|
||||||
|
// copy common properties
|
||||||
|
dst->pts = src->pts;
|
||||||
|
dst->pos = src->pos;
|
||||||
|
|
||||||
|
switch (src->type) {
|
||||||
|
case AVMEDIA_TYPE_VIDEO: *dst->video = *src->video; break;
|
||||||
|
case AVMEDIA_TYPE_AUDIO: *dst->audio = *src->audio; break;
|
||||||
|
default: break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -145,18 +145,7 @@ typedef struct AVFilterBufferRef {
|
|||||||
/**
|
/**
|
||||||
* Copy properties of src to dst, without copying the actual data
|
* Copy properties of src to dst, without copying the actual data
|
||||||
*/
|
*/
|
||||||
static inline void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *src)
|
void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *src);
|
||||||
{
|
|
||||||
// copy common properties
|
|
||||||
dst->pts = src->pts;
|
|
||||||
dst->pos = src->pos;
|
|
||||||
|
|
||||||
switch (src->type) {
|
|
||||||
case AVMEDIA_TYPE_VIDEO: *dst->video = *src->video; break;
|
|
||||||
case AVMEDIA_TYPE_AUDIO: *dst->audio = *src->audio; break;
|
|
||||||
default: break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a new reference to a buffer.
|
* Add a new reference to a buffer.
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
#define LIBAVFILTER_VERSION_MAJOR 2
|
#define LIBAVFILTER_VERSION_MAJOR 2
|
||||||
#define LIBAVFILTER_VERSION_MINOR 16
|
#define LIBAVFILTER_VERSION_MINOR 16
|
||||||
#define LIBAVFILTER_VERSION_MICRO 0
|
#define LIBAVFILTER_VERSION_MICRO 1
|
||||||
|
|
||||||
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
|
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
|
||||||
LIBAVFILTER_VERSION_MINOR, \
|
LIBAVFILTER_VERSION_MINOR, \
|
||||||
|
Loading…
Reference in New Issue
Block a user