[mythtv] [patch] viaslice avcodec fix

Lee Lists lists at jave.dyndns.org
Mon Jun 14 15:55:12 EDT 2004


Kenneth Aafløy a écrit :

>Hello!
>
>Add setting of the dwMPEGProgressiveMode and flip dwSecondField in viaslice.c. 
>Still not sure about the dwSecondField thing, so I left the comment. I'm 
>currently cleaning up the via ddmpeg drivers, so that they are readable, when 
>that's done I'll see about getting some more buffers, color osd and some sort 
>of deinterlacing going.
>
>Kenneth
>  
>
>------------------------------------------------------------------------
>
>Index: libs/libavcodec/viaslice.c
>===================================================================
>RCS file: /var/lib/mythcvs/mythtv/libs/libavcodec/viaslice.c,v
>retrieving revision 1.8
>diff -u -r1.8 viaslice.c
>--- libs/libavcodec/viaslice.c	30 Mar 2004 06:06:49 -0000	1.8
>+++ libs/libavcodec/viaslice.c	8 Jun 2004 23:07:02 -0000
>@@ -74,7 +74,7 @@
>     VIAMPGSurface.dwConcealMV = s->concealment_motion_vectors;
> 
>     // XXX: not sure on this
>-    VIAMPGSurface.dwSecondField = s->first_field;
>+    VIAMPGSurface.dwSecondField = s->first_field?0:1;
> 
>     // FIXME: fill in from last, next picture_ptr
>     VIAMPGSurface.dwOldRefFrame = 0;
>@@ -99,6 +99,9 @@
>     VIAMPGSurface.BVMVRange = s->mpeg_f_code[1][1] - 1;
>     VIAMPGSurface.BHMVRange = s->mpeg_f_code[1][0] - 1;
> 
>+    VIAMPGSurface.dwMPEGProgressiveMode = s->progressive_sequence?
>+                                          VIA_PROGRESSIVE:VIA_NON_PROGRESSIVE;
>+
>     VIABeginPicture(&VIAMPGSurface);
> 
>     return 0;
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>mythtv-dev mailing list
>mythtv-dev at mythtv.org
>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>  
>
really great work, thanks.


More information about the mythtv-dev mailing list