aboutsummaryrefslogtreecommitdiff
path: root/plugins/rtp/src/gst_fixes.c
blob: 86b2b5985a36dde1608e37a77ca5432d06b779ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <gst/video/video.h>

GstVideoInfo *gst_video_frame_get_video_info(GstVideoFrame *frame) {
    return &frame->info;
}

void *gst_video_frame_get_data(GstVideoFrame *frame, size_t* length) {
    *length = frame->info.height * frame->info.stride[0];
    return frame->data[0];
}