Revision a336965e libavformat/movenc.c

View differences:

libavformat/movenc.c
946 946

  
947 947
    put_be32(pb, av_rescale_rnd(track->trackDuration, globalTimescale, track->timescale, AV_ROUND_UP)); /* duration   ... doesn't seem to effect psp */
948 948

  
949
    put_be32(pb, track->sampleDuration);
949
    if (track->hasBframes)
950
        put_be32(pb, track->sampleDuration); /* first pts is 1 */
951
    else
952
        put_be32(pb, 0);
950 953
    put_be32(pb, 0x00010000);
951 954
    return 0x24;
952 955
}

Also available in: Unified diff