summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/post/mosaico/.cvsignore1
-rw-r--r--src/post/mosaico/mosaico.c17
2 files changed, 10 insertions, 8 deletions
diff --git a/src/post/mosaico/.cvsignore b/src/post/mosaico/.cvsignore
index 7d926a554..1a8717a74 100644
--- a/src/post/mosaico/.cvsignore
+++ b/src/post/mosaico/.cvsignore
@@ -4,3 +4,4 @@ Makefile.in
.deps
*.lo
*.la
+test \ No newline at end of file
diff --git a/src/post/mosaico/mosaico.c b/src/post/mosaico/mosaico.c
index c4ebb29bd..61e8a5e1a 100644
--- a/src/post/mosaico/mosaico.c
+++ b/src/post/mosaico/mosaico.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: mosaico.c,v 1.6 2003/02/28 12:16:00 mroi Exp $
+ * $Id: mosaico.c,v 1.7 2003/02/28 14:31:27 skaboy Exp $
*/
/*
@@ -401,15 +401,16 @@ static void frame_copy_content(vo_frame_t *to, vo_frame_t *from) {
#endif
return;
}
- /* it works only for XINE_IMGFMT_YV12*/
+
+ if(to->format != from->format) {
+ printf("frame_copy_content : buffers have different format\n");
+ return;
+ }
+
switch (from->format) {
case XINE_IMGFMT_YUY2:
-#ifdef LOG
- printf("not supported\n");
-#endif
- /*size = new_frame->pitches[0] * new_frame->height;
- for (i = 0; i < size; i++)
- new_frame->base[0][i] = frame->base[0][i];*/
+ size = to->pitches[0] * to->height;
+ xine_fast_memcpy(to->base[0], from->base[0], size);
break;
case XINE_IMGFMT_YV12: