... is finally displayed :)
The bug was caused by an undocumented property of avcodec_decode_video:
In order to get the last I or P frame, you have to call the function one
more time, with an empty input buffer.
--
Michael "Tired" Riepe <[EMAIL PROTECTED]>
X-Tired: Each morning I get up I die a little
Index: dvbcut/src/mpgfile.cpp
===================================================================
RCS file: /var/cvs/sys/qt3/dvbcut/src/mpgfile.cpp,v
retrieving revision 1.6
diff -u -r1.6 mpgfile.cpp
--- dvbcut/src/mpgfile.cpp 24 Aug 2006 23:57:20 -0000 1.6
+++ dvbcut/src/mpgfile.cpp 31 Aug 2006 20:44:50 -0000
@@ -186,6 +186,18 @@
++streampic;
}
+ if (pic < stop) {
+ int frameFinished=0;
+ avcodec_decode_video(S->avcc, avf, &frameFinished, NULL, 0);
+ if (frameFinished) {
+ if (last_cpn!=avf->coded_picture_number) {
+ last_cpn=avf->coded_picture_number;
+ if (pic>=start)
+ framelist.push_back(new avframe(avf,S->avcc));
+ }
+ }
+ }
+
avcodec_close(S->avcc);
}
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
DVBCUT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dvbcut-user