anotherim-desktop/plugins/rtp/src/gst_fixes.c

10 lines
284 B
C
Raw Normal View History

2022-05-14 11:59:54 +00:00
#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];
}