Revision fdf46622 libavformat/flvdec.c
libavformat/flvdec.c | ||
---|---|---|
362 | 362 |
} |
363 | 363 |
|
364 | 364 |
// if not streamed and no duration from metadata then seek to end to find the duration from the timestamps |
365 |
if(!url_is_streamed(s->pb) && s->duration==AV_NOPTS_VALUE){
|
|
365 |
if(!url_is_streamed(s->pb) && (!s->duration || s->duration==AV_NOPTS_VALUE)){
|
|
366 | 366 |
int size; |
367 | 367 |
const int64_t pos= url_ftell(s->pb); |
368 | 368 |
const int64_t fsize= url_fsize(s->pb); |
Also available in: Unified diff