Add a generic function to lavc to log messages about missing features.
Patch by Justin Ruggles (justin ruggles gmail com) Originally committed as revision 14685 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:

committed by
Robert Swain

parent
af1761915b
commit
ea779d91ca
@@ -1513,3 +1513,16 @@ int av_parse_video_frame_rate(AVRational *frame_rate, const char *arg)
|
||||
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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user