# HG changeset patch # User conrad # Date 1271420498 0 # Node ID ad447f14685969a0d668e63a45507fdd62fde19a # Parent 986168b721cafd9e07f6004ec7c5be2e15fc6723 oggdec: Move warning about missing granule to the correct place diff -r 986168b721ca -r ad447f146859 oggdec.c --- a/oggdec.c Fri Apr 16 12:21:35 2010 +0000 +++ b/oggdec.c Fri Apr 16 12:21:38 2010 +0000 @@ -362,6 +362,9 @@ idx, os->psize, os->pstart); #endif + if (os->granule == -1) + av_log(s, AV_LOG_WARNING, "Page at %lld is missing granule\n", os->page_pos); + ogg->curidx = idx; os->incomplete = 0; @@ -512,8 +515,7 @@ else os->lastpts = ogg_gptopts(s, idx, os->granule, &os->lastdts); os->granule = -1LL; - } else - av_log(s, AV_LOG_WARNING, "Packet is missing granule\n"); + } } return pts; }