jpeg detection fix - fixed imagepipe output

Originally committed as revision 1443 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Fabrice Bellard
2003-01-11 05:33:35 +00:00
parent 7481e91982
commit 94d883e84b
2 changed files with 5 additions and 3 deletions

View File

@@ -86,7 +86,9 @@ AVOutputFormat *guess_format(const char *short_name, const char *filename,
int score_max, score;
/* specific test for image sequences */
if (!short_name && filename && filename_number_test(filename) >= 0) {
if (!short_name && filename &&
filename_number_test(filename) >= 0 &&
guess_image_format(filename)) {
return guess_format("image", NULL, NULL);
}