diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2013-12-14 15:50:31 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-12-20 19:39:38 +0100 |
commit | 78d0b7f36e39bb4745613e312024ddd508e2f0fb (patch) | |
tree | a64f162b70535800d90125ce3d33aa15acceaf1d /libavcodec | |
parent | 259cddb137988a25607f091c2414158ff81ca7d6 (diff) | |
download | ffmpeg-78d0b7f36e39bb4745613e312024ddd508e2f0fb.tar.gz |
hevc: warn when an unknown profile is used
Bitstreams conforming to the spec should not use profiles not defined
in it.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/hevc_ps.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index b940c9b278..6e3986f672 100644 --- a/libavcodec/hevc_ps.c +++ b/libavcodec/hevc_ps.c @@ -201,6 +201,14 @@ static void decode_profile_tier_level(HEVCContext *s, PTLCommon *ptl) ptl->profile_space = get_bits(gb, 2); ptl->tier_flag = get_bits1(gb); ptl->profile_idc = get_bits(gb, 5); + if (ptl->profile_idc == FF_PROFILE_HEVC_MAIN) + av_log(s->avctx, AV_LOG_DEBUG, "Main profile bitstream\n"); + else if (ptl->profile_idc == FF_PROFILE_HEVC_MAIN_10) + av_log(s->avctx, AV_LOG_DEBUG, "Main 10 profile bitstream\n"); + else if (ptl->profile_idc == FF_PROFILE_HEVC_MAIN_STILL_PICTURE) + av_log(s->avctx, AV_LOG_DEBUG, "Main Still Picture profile bitstream\n"); + else + av_log(s->avctx, AV_LOG_WARNING, "Unknown HEVC profile: %d\n", ptl->profile_idc); for (i = 0; i < 32; i++) ptl->profile_compatibility_flag[i] = get_bits1(gb); |