Revision a4397fa9

View differences:

libavformat/mxfenc.c
894 894
            for (j = i+1; j < mxf->edit_units_count; j++) {
895 895
                temporal_offset++;
896 896
                if (mxf->index_entries[j].flags & 0x10) { // backward prediction
897
                     // next is not b, so is reordered
898
                    if (!(mxf->index_entries[i+1].flags & 0x10))
899
                        temporal_offset = -temporal_offset;
897
                    // next is not b, so is reordered
898
                    if (!(mxf->index_entries[i+1].flags & 0x10)) {
899
                        if ((mxf->index_entries[i].flags & 0x11) == 0) // i frame
900
                            temporal_offset = 0;
901
                        else
902
                            temporal_offset = -temporal_offset;
903
                    }
900 904
                    break;
901 905
                }
902 906
            }

Also available in: Unified diff