mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Better bad packet detection...?
This commit is contained in:
parent
1230315a4e
commit
e35d117156
@ -495,7 +495,7 @@ bool FfmpegDecoder::RefillFifoQueue() {
|
||||
invalid. this can be observed when playing wav files that have
|
||||
album art metadata, but may happen in other cases. if we detect
|
||||
an invalid packet, simply discard it and get the next one */
|
||||
if (packet.pts == AV_NOPTS_VALUE && packet.dts == AV_NOPTS_VALUE) {
|
||||
if (packet.pos == -1 && packet.duration <= 1) {
|
||||
logError("invalid packet detected, discarding.");
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user