Mercurial > libavformat.hg
comparison utils.c @ 1674:a216ebdce1ff libavformat
Demuxers with AVFMT_NOFILE will open a (possibly different) file themselves,
so do not probe them if is_opened is set.
| author | reimar |
|---|---|
| date | Fri, 19 Jan 2007 22:52:59 +0000 |
| parents | e4f1922ac981 |
| children | b8656dd86312 |
comparison
equal
deleted
inserted
replaced
| 1673:a782462e2497 | 1674:a216ebdce1ff |
|---|---|
| 277 int score, score_max; | 277 int score, score_max; |
| 278 | 278 |
| 279 fmt = NULL; | 279 fmt = NULL; |
| 280 score_max = 0; | 280 score_max = 0; |
| 281 for(fmt1 = first_iformat; fmt1 != NULL; fmt1 = fmt1->next) { | 281 for(fmt1 = first_iformat; fmt1 != NULL; fmt1 = fmt1->next) { |
| 282 if (!is_opened && !(fmt1->flags & AVFMT_NOFILE)) | 282 if (!is_opened == !(fmt1->flags & AVFMT_NOFILE)) |
| 283 continue; | 283 continue; |
| 284 score = 0; | 284 score = 0; |
| 285 if (fmt1->read_probe) { | 285 if (fmt1->read_probe) { |
| 286 score = fmt1->read_probe(pd); | 286 score = fmt1->read_probe(pd); |
| 287 } else if (fmt1->extensions) { | 287 } else if (fmt1->extensions) { |
