Hi

I did the following (hacky?) patch to dvb-mpegtools sources (looked the
code a bit, and then decided trial-and-error...), and it seems to
work (tested 2 of those 6 in my previous mail, and tested one having
av sync OK).

Perhaps someone else verifies it too (and/or writes more style-compliant
version).

Tomi

--- transform.c 2002-11-28 23:58:20.000000000 +0200
+++ transform.c-patched 2003-01-20 01:54:59.000000000 +0200
@@ -853,6 +853,9 @@
                
                if  ( p->flag2 & PTS_DTS ) 
                        p->vpts = trans_pts_dts(p->pts); 
+               else
+                 return; /* don't allow writing until ... */
+               
                while ( !found && c+3 < p->plength+6 ){
                        if ( p->buf[c] == 0x00 && 
                             p->buf[c+1] == 0x00 && 
@@ -872,8 +875,12 @@
        if ( p->es && !p->starta && type == AUDIO){
                int found = 0;
                int c = 6+p->hlength+3*factor;
+
                if  ( p->flag2 & PTS_DTS ) 
                        p->apts = trans_pts_dts(p->pts);  
+               else
+                 return; /* don't allow writing until ... */
+               
                if (p->startv)
                        while ( !found && c+1 < p->plength+6){
                                if ( p->buf[c] == 0xFF && 



-- 
Info:
To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe linux-dvb" as 
subject.

Reply via email to