summaryrefslogtreecommitdiffstats
path: root/libavcodec/dvdata.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-03-26 13:02:54 +0200
committerAnton Khirnov <anton@khirnov.net>2012-03-28 09:29:04 +0200
commita839dbb94ed9244a1678339dbb05355d8257a126 (patch)
treecea6456154e991a41da24adad92fca0f9a355226 /libavcodec/dvdata.c
parent3c6607eb6f946ed3e108db3f0694cab7e5a5df7e (diff)
downloadffmpeg-streaming-a839dbb94ed9244a1678339dbb05355d8257a126.zip
ffmpeg-streaming-a839dbb94ed9244a1678339dbb05355d8257a126.tar.gz
dvenc: print allowed profiles if the video doesn't conform to any of them.
Diffstat (limited to 'libavcodec/dvdata.c')
-rw-r--r--libavcodec/dvdata.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/dvdata.c b/libavcodec/dvdata.c
index 1d32304..6d123a9 100644
--- a/libavcodec/dvdata.c
+++ b/libavcodec/dvdata.c
@@ -25,6 +25,7 @@
*/
#include "libavutil/rational.h"
+#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "dvdata.h"
@@ -322,3 +323,14 @@ const DVprofile* avpriv_dv_codec_profile(AVCodecContext* codec)
return NULL;
}
+
+void ff_dv_print_profiles(void *logctx, int loglevel)
+{
+ int i;
+ for (i = 0; i < FF_ARRAY_ELEMS(dv_profiles); i++) {
+ const DVprofile *p = &dv_profiles[i];
+ av_log(logctx, loglevel, "Frame size: %dx%d; pixel format: %s, "
+ "framerate: %d/%d\n", p->width, p->height, av_get_pix_fmt_name(p->pix_fmt),
+ p->time_base.den, p->time_base.num);
+ }
+}
OpenPOWER on IntegriCloud