comparison utils.c @ 7530:398636f16e7e libavcodec

Add a generic function to lavc to log messages about missing features. Patch by Justin Ruggles (justin ruggles gmail com)
author superdump
date Sun, 10 Aug 2008 20:29:43 +0000
parents eaf0ebba81d7
children e50e9def7428
comparison
equal deleted inserted replaced
7529:6b13ee6a63ca 7530:398636f16e7e
1511 if (!frame_rate->num || !frame_rate->den) 1511 if (!frame_rate->num || !frame_rate->den)
1512 return -1; 1512 return -1;
1513 else 1513 else
1514 return 0; 1514 return 0;
1515 } 1515 }
1516
1517 void av_log_missing_feature(void *avc, const char *feature, int want_sample)
1518 {
1519 av_log(avc, AV_LOG_WARNING, "%s not implemented. Update your FFmpeg "
1520 "version to the newest one from SVN. If the problem still "
1521 "occurs, it means that your file has a feature which has not "
1522 "been implemented.", feature);
1523 if(want_sample)
1524 av_log(avc, AV_LOG_WARNING, " If you want to help, upload a sample "
1525 "of this file to ftp://upload.mplayerhq.hu/MPlayer/incoming/ "
1526 "and contact the FFmpeg-devel mailing list.");
1527 av_log(avc, AV_LOG_WARNING, "\n");
1528 }