vorbis test files:
http://www.vorbis.com/music/
http://www.vorbis.com/music/Epoq-Lepidoptera.ogg
http://www.vorbis.com/music/Hydrate-Kenny_Beltrey.ogg
http://www.vorbis.com/music/Lumme-Badloop.ogg
http://www.vorbis.com/music/Mists_of_Time-4T.ogg
http://www.vorbis.com/music/The_Abyss-4T.ogg
return ERROR_END_OF_STREAM;
}
- //FIXME, drop, omxcodec requires a positive timestamp! e.g. vorbis
- if (pkt.pts < 0) {
- ALOGW("drop the packet with negative timestamp(pts:%lld)", pkt.pts);
- av_free_packet(&pkt);
- goto retry;
- }
-
if (seeking) {
if (pkt.data != flush_pkt.data) {
av_free_packet(&pkt);
if (pkt.pts == AV_NOPTS_VALUE)
pktTS = pkt.dts;
+ //FIXME, drop, omxcodec requires a positive timestamp! e.g. vorbis
+ if (pktTS != AV_NOPTS_VALUE && pktTS < 0) {
+ ALOGW("drop the packet with negative timestamp(pts:%lld)", pktTS);
+ av_free_packet(&pkt);
+ goto retry;
+ }
+
if (waitKeyPkt) {
if (!key) {
ALOGV("drop the non-key packet");