Mercurial > libavformat.hg
comparison movenc.c @ 1053:df4150ae4ebf libavformat
fix edts for tracks without b frames
author | bcoudurier |
---|---|
date | Mon, 10 Apr 2006 17:04:22 +0000 |
parents | ece3b7eecba2 |
children | b38a08b0cd12 |
comparison
equal
deleted
inserted
replaced
1052:66bd5e175690 | 1053:df4150ae4ebf |
---|---|
944 put_be32(pb, 0x0); | 944 put_be32(pb, 0x0); |
945 put_be32(pb, 0x1); | 945 put_be32(pb, 0x1); |
946 | 946 |
947 put_be32(pb, av_rescale_rnd(track->trackDuration, globalTimescale, track->timescale, AV_ROUND_UP)); /* duration ... doesn't seem to effect psp */ | 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 put_be32(pb, 0x00010000); | 953 put_be32(pb, 0x00010000); |
951 return 0x24; | 954 return 0x24; |
952 } | 955 } |
953 | 956 |
954 // goes at the end of each track! ... Critical for PSP playback ("Incompatible data" without it) | 957 // goes at the end of each track! ... Critical for PSP playback ("Incompatible data" without it) |