Ticket #6005: mythcommflag.patch
| File mythcommflag.patch, 1.5 KB (added by , 17 years ago) |
|---|
-
libs/libmythtv/avformatdecoder.cpp
old new 2726 2726 uint32_t bytes_used = h264_kf_seq->AddBytes(buf, buf_end - buf, 0); 2727 2727 buf += bytes_used; 2728 2728 2729 if (!h264_kf_seq->HasStateChanged() || !h264_kf_seq->IsOnKeyframe())2729 if (!h264_kf_seq->HasStateChanged()) 2730 2730 continue; 2731 if (!h264_kf_seq->IsOnKeyframe()) 2732 { 2733 if(h264_kf_seq->IsOnFrame()) 2734 framesRead++; 2735 continue; 2736 } 2731 2737 2732 2738 float aspect_ratio; 2733 2739 if (context->sample_aspect_ratio.num == 0) … … 2772 2778 .arg(avFPS).arg(seqFPS)); 2773 2779 } 2774 2780 } 2775 2781 if (keyframedist > 1) 2782 { 2783 keyframedist = 1; 2784 positionMapType = MARK_GOP_BYFRAME; 2785 GetNVP()->SetKeyframeDistance(keyframedist); 2786 } 2776 2787 HandleGopStart(pkt); 2777 2788 pkt->flags |= PKT_FLAG_KEY; 2789 framesRead++; 2778 2790 } 2779 2791 } 2780 2792 … … 3600 3612 continue; 3601 3613 } 3602 3614 3603 framesRead++; 3615 if (context->codec_id != CODEC_ID_H264) 3616 { 3617 //H264PreProcessPkt will update this for us 3618 framesRead++; 3619 } 3604 3620 justAfterChange = false; 3605 3621 3606 3622 if (exitafterdecoded)
