[Ffmpeg-devel] Matroska Patch

Ian Caulfield imc25
Thu Mar 23 11:20:30 CET 2006


Is it just me, or will the block_time < 0 always be false, as it's an 
unsigned value? (Obviously this bug isn't introduced by the patch)

@@ -2426,10 +2426,10 @@
                              break;
                          }
                          if (cluster_time != (uint64_t)-1) {
-                            if (time < 0 && (-time) > cluster_time)
+                            if (block_time < 0 && (-block_time) > cluster_time)
                                  timecode = cluster_time;
                              else
-                                timecode = cluster_time + time;
+                                timecode = cluster_time + block_time;
                          }
                          /* FIXME: duration */







More information about the ffmpeg-devel mailing list