Advertisement
Guest User

taglib-mp3-incomplete

a guest
Nov 9th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.46 KB | None | 0 0
  1. diff -u taglib-1.11.1-orig/taglib/mpeg/mpegfile.cpp taglib-1.11.1/taglib/mpeg/mpegfile.cpp
  2. --- taglib-1.11.1-orig/taglib/mpeg/mpegfile.cpp 2016-10-24 05:03:23.000000000 +0200
  3. +++ taglib-1.11.1/taglib/mpeg/mpegfile.cpp  2017-11-09 12:28:00.707459200 +0100
  4. @@ -419,6 +419,9 @@
  5.    else
  6.      position = length();
  7.  
  8. +  if (position >= length()) //if the file is incomplete
  9. +    position = 0xfffff;     //some small value
  10. +
  11.    return previousFrameOffset(position);
  12.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement