Hi all,
for a long time I was bothered by never having the correct duration of a
video I was watching (If the video was longer than about 35 minutes).
Attached is a very simple fix for that. I'm not sure if this fix hides
something else, but for me it is obvious: the duration and start_time in
AVFormatContext are int64_t and not int32_t .
Please apply if appropriate,
Patrick.
Index: SoftPlayer.h
===================================================================
RCS file: /cvsroot/softdevice/softplay/SoftPlayer.h,v
retrieving revision 1.7
diff -u -3 -p -r1.7 SoftPlayer.h
--- SoftPlayer.h 25 Jul 2006 20:03:33 -0000 1.7
+++ SoftPlayer.h 3 Dec 2006 12:18:09 -0000
@@ -47,8 +47,8 @@ class cSoftPlayer : public cPlayer, cThr
char title[60];
char author[60];
char album[60];
- int duration;
- int start_time;
+ int64_t duration;
+ int64_t start_time;
char filename[200];
bool newFile;
_______________________________________________
Softdevice-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/softdevice-devel