Mercurial > libavcodec.hg
diff 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 |
line wrap: on
line diff
--- a/utils.c Sun Aug 10 18:15:38 2008 +0000 +++ b/utils.c Sun Aug 10 20:29:43 2008 +0000 @@ -1513,3 +1513,16 @@ else return 0; } + +void av_log_missing_feature(void *avc, const char *feature, int want_sample) +{ + av_log(avc, AV_LOG_WARNING, "%s not implemented. Update your FFmpeg " + "version to the newest one from SVN. If the problem still " + "occurs, it means that your file has a feature which has not " + "been implemented.", feature); + if(want_sample) + av_log(avc, AV_LOG_WARNING, " If you want to help, upload a sample " + "of this file to ftp://upload.mplayerhq.hu/MPlayer/incoming/ " + "and contact the FFmpeg-devel mailing list."); + av_log(avc, AV_LOG_WARNING, "\n"); +}