Mercurial > libavformat.hg
comparison oggdec.c @ 5958:ad447f146859 libavformat
oggdec: Move warning about missing granule to the correct place
author | conrad |
---|---|
date | Fri, 16 Apr 2010 12:21:38 +0000 |
parents | 986168b721ca |
children | 4bedd06c54e2 |
comparison
equal
deleted
inserted
replaced
5957:986168b721ca | 5958:ad447f146859 |
---|---|
359 #if 0 | 359 #if 0 |
360 av_log (s, AV_LOG_DEBUG, | 360 av_log (s, AV_LOG_DEBUG, |
361 "ogg_packet: idx %i, frame size %i, start %i\n", | 361 "ogg_packet: idx %i, frame size %i, start %i\n", |
362 idx, os->psize, os->pstart); | 362 idx, os->psize, os->pstart); |
363 #endif | 363 #endif |
364 | |
365 if (os->granule == -1) | |
366 av_log(s, AV_LOG_WARNING, "Page at %lld is missing granule\n", os->page_pos); | |
364 | 367 |
365 ogg->curidx = idx; | 368 ogg->curidx = idx; |
366 os->incomplete = 0; | 369 os->incomplete = 0; |
367 | 370 |
368 if (os->header) { | 371 if (os->header) { |
510 if (os->codec && os->codec->granule_is_start) | 513 if (os->codec && os->codec->granule_is_start) |
511 pts = ogg_gptopts(s, idx, os->granule, dts); | 514 pts = ogg_gptopts(s, idx, os->granule, dts); |
512 else | 515 else |
513 os->lastpts = ogg_gptopts(s, idx, os->granule, &os->lastdts); | 516 os->lastpts = ogg_gptopts(s, idx, os->granule, &os->lastdts); |
514 os->granule = -1LL; | 517 os->granule = -1LL; |
515 } else | 518 } |
516 av_log(s, AV_LOG_WARNING, "Packet is missing granule\n"); | |
517 } | 519 } |
518 return pts; | 520 return pts; |
519 } | 521 } |
520 | 522 |
521 static int | 523 static int |