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: {
        if (dst->video->qp_table)
            av_freep(&dst->video->qp_table);
        copy_video_props(dst->video, src->video);
        break;
    }
    case AVMEDIA_TYPE_AUDIO: *dst->audio = *src->audio; break;
    default: break;
    }
}
void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *src)
{
    
    dst->pts             = src->pts;
    dst->pos             = src->pos;
    switch (src->type) {
    case AVMEDIA_TYPE_VIDEO: {
        if (dst->video->qp_table)
            av_freep(&dst->video->qp_table);
        copy_video_props(dst->video, src->video);
        break;
    }
    case AVMEDIA_TYPE_AUDIO: *dst->audio = *src->audio; break;
    default: break;
    }
}
void FUNC_0(AVFilterBufferRef *VAR_0, AVFilterBufferRef *VAR_1)
{
    
    VAR_0->pts             = VAR_1->pts;
    VAR_0->pos             = VAR_1->pos;
    switch (VAR_1->type) {
    case AVMEDIA_TYPE_VIDEO: {
        if (VAR_0->video->qp_table)
            av_freep(&VAR_0->video->qp_table);
        copy_video_props(VAR_0->video, VAR_1->video);
        break;
    }
    case AVMEDIA_TYPE_AUDIO: *VAR_0->audio = *VAR_1->audio; break;
    default: break;
    }
}
void FUNC_0(AVFilterBufferRef *VAR_0, AVFilterBufferRef *VAR_1)
{ VAR_0->pts             = VAR_1->pts; VAR_0->pos             = VAR_1->pos; switch (VAR_1->type) { case AVMEDIA_TYPE_VIDEO: { if (VAR_0->video->qp_table)
av_freep(&VAR_0->video->qp_table); copy_video_props(VAR_0->video, VAR_1->video); break; } case AVMEDIA_TYPE_AUDIO: *VAR_0->audio = *VAR_1->audio; break; default: break; } }