Hi,

I use softdevice in my VDR with DirectFB.
Since some time I have the following problem when I replay an  
recording. When I fast forward the recording, it runs forward  
extremely fast for the first minute (of recording time) or so. Then it  
goes to normal ff-speed. The same if I rewind. Also jumping forward or  
backward by 1 minute (green and yellow button) is not a minute.  
Forward it jumps more than 1 minute. Backwards it is less then 1 minute.

I found out that this change came on 15. April 2008. After some more  
investigating I found, it hat to do with the change from  
av_read_packet to av_read_frame.

The following patch changes back from av_read_frame to av_read_packet  
and so fixes the problem.
Could someone confirm this?
And why did we change from av_read_packet to av_read_frame?


diff -Nur softdevice-20080415/mpeg2decoder.c  
softdevice-20080416/mpeg2decoder.c
--- softdevice-20080415/mpeg2decoder.c  2008-04-12 14:27:58.000000000 +0200
+++ softdevice-20080416/mpeg2decoder.c  2008-04-15 19:34:30.000000000 +0200
@@ -1191,15 +1191,15 @@
            usleep(50000);

          BUFDEB("av_read_frame start\n");
-        ret = av_read_frame(ic, &pkt);
-        //ret = av_read_packet(ic, &pkt);
+        //ret = av_read_frame(ic, &pkt);
+        ret = av_read_packet(ic, &pkt);
          if (ret < 0) {
              BUFDEB("cMpeg2Decoder Stream Error!\n");
              if (ThreadActive)
                     usleep(10000);
              continue;
          }
-        av_dup_packet(&pkt);
+        //av_dup_packet(&pkt);
          PacketCount++;
          BUFDEB("got packet from av_read_frame!\n");


_______________________________________________
Softdevice-devel mailing list
Softdevice-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/softdevice-devel

Reply via email to