[mythtv] Is AvFormatDecoder::GetFrame(-1) broken?
Boleslaw Ciesielski
bolek-mythtv at curl.com
Sun Jan 8 23:01:45 UTC 2006
It seems that AvFormatDecoder::GetFrame(-1) is not returning after the
next frame but only after the entire file is read. This isn't the right
behavior, is it? This affects for example
NuppelVideoPlayer::RebuildSeekTable which does not display any progress
messages because of it.
Assuming that this is wrong, I tried the following patch:
--- libs/libmythtv/avformatdecoder.cpp (revision 8519)
+++ libs/libmythtv/avformatdecoder.cpp (working copy)
@@ -2483,6 +2483,7 @@
}
if (onlyvideo < 0)
{
+ gotvideo = 1;
framesPlayed++;
ptr += pkt->size;
len -= pkt->size;
This fixes the problem, but I am not sure if it's right.
Bolek
More information about the mythtv-dev
mailing list