summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorJustin Ruggles <jruggle@earthlink.net>2008-08-10 20:29:43 +0000
committerRobert Swain <robert.swain@gmail.com>2008-08-10 20:29:43 +0000
commitea779d91cae8a30e316c11f3ec7a03b3f3f7fae0 (patch)
treeddb85ed824cf5916f5838876e5c2d2f17a08b550 /libavcodec/utils.c
parentaf1761915bda2a5bd53024975234b25e3fbbcb59 (diff)
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
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 599226145a..8ca19aed00 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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");
+}