igorcoroli / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

FFMpegFrameGrabber.setTimestamp(long timestamp) infinite while loop #398

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Calling setTimestamp(long timestamp) on FFMpegFrameGrabber causes a infinite 
while loop in grabFrame(boolean processImage, boolean doAudio) when pkt2.size() 
> 0 (because doAudio will be false so the unprocessed information in pkt2 will 
never be processed). 

Please provide any additional information below.

Workaround (or solution?) - set pkt2.size to 0 before calling grab() in 
FFMpegFrameGrabber.setTimestamp(long) 

Original issue reported on code.google.com by bogdan.m...@gmail.com on 20 Dec 2013 at 11:51

GoogleCodeExporter commented 8 years ago
Should be fixed in the newly released JavaCV 0.7:
http://code.google.com/p/javacv/source/detail?r=f3bb7aa577c0b427a88f927a2cea8ec5
05c31e22
Please test it out, and thanks for reporting!

Original comment by samuel.a...@gmail.com on 7 Jan 2014 at 12:48