Revision 62bacc4e libavformat/movenc.c

View differences:

libavformat/movenc.c
1981 1981
    trk->cluster[trk->entry].cts = pkt->pts - pkt->dts;
1982 1982
    trk->cluster[trk->entry].flags = 0;
1983 1983
    if (pkt->flags & AV_PKT_FLAG_KEY) {
1984
        if (mov->mode == MODE_MOV && enc->codec_id == CODEC_ID_MPEG2VIDEO) {
1984
        if (mov->mode == MODE_MOV && enc->codec_id == CODEC_ID_MPEG2VIDEO &&
1985
            trk->entry > 0) { // force sync sample for the first key frame
1985 1986
            mov_parse_mpeg2_frame(pkt, &trk->cluster[trk->entry].flags);
1986 1987
            if (trk->cluster[trk->entry].flags & MOV_PARTIAL_SYNC_SAMPLE)
1987 1988
                trk->flags |= MOV_TRACK_STPS;

Also available in: Unified diff