Permalink
Browse files

Always trust ffmpeg keyframe decoding. Now that janne has fixed this …

…for h.264 annex b, we should be good for all recording hardware currently in use.

This allows "mythcommflag --rebuild" to work for ffmpeg decoded files other than MPEG-2 and h.264 annex b.



git-svn-id: http://svn.mythtv.org/svn/branches/release-0-22-fixes@22452 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
1 parent 2c676b6 commit 7be6e090ec4be5e31b2778e60f9ebfa8ef366140 @daniel-kristjansson daniel-kristjansson committed Oct 14, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 mythtv/libs/libmythtv/avformatdecoder.cpp
View
6 mythtv/libs/libmythtv/avformatdecoder.cpp
@@ -2648,7 +2648,7 @@ bool AvFormatDecoder::H264PreProcessPkt(AVStream *stream, AVPacket *pkt)
if (nal_size)
{
if (pkt->flags & PKT_FLAG_KEY)
- HandleGopStart(pkt, false);
+ HandleGopStart(pkt, true);
return true;
}
}
@@ -3548,15 +3548,15 @@ bool AvFormatDecoder::GetFrame(int onlyvideo)
{
if (pkt->flags & PKT_FLAG_KEY)
{
- HandleGopStart(pkt, false);
+ HandleGopStart(pkt, true);
seen_gop = true;
}
else
{
seq_count++;
if (!seen_gop && seq_count > 1)
{
- HandleGopStart(pkt, false);
+ HandleGopStart(pkt, true);
}
}
}

0 comments on commit 7be6e09

Please sign in to comment.