+ memcpy(avframe->data[0],
+ framewithpts->frame->components[0].data,
+ framewithpts->frame->components[0].length);
+
+ memcpy(avframe->data[1],
+ framewithpts->frame->components[1].data,
+ framewithpts->frame->components[1].length);
+
+ memcpy(avframe->data[2],
+ framewithpts->frame->components[2].data,
+ framewithpts->frame->components[2].length);
+
+ /* Fill frame with current buffer data from Schroedinger. */
+ avframe->pts = framewithpts->pts;
+#if FF_API_PKT_PTS
+FF_DISABLE_DEPRECATION_WARNINGS
+ avframe->pkt_pts = avframe->pts;
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
+ avframe->linesize[0] = framewithpts->frame->components[0].stride;
+ avframe->linesize[1] = framewithpts->frame->components[1].stride;
+ avframe->linesize[2] = framewithpts->frame->components[2].stride;
+
+ *got_frame = 1;
+ } else {
+ data = NULL;
+ *got_frame = 0;