[vlc-commits] avcodec: pass profile and level to hardware acceleration
Rémi Denis-Courmont
git at videolan.org
Sat Apr 27 13:06:25 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Apr 27 14:00:25 2013 +0300| [6559a56bd9da9e6c7f88e6d99cdd9c5e2a795340] | committer: Rémi Denis-Courmont
avcodec: pass profile and level to hardware acceleration
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6559a56bd9da9e6c7f88e6d99cdd9c5e2a795340
---
modules/codec/avcodec/video.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 2b87f35..4b427a4 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1143,6 +1143,13 @@ static enum PixelFormat ffmpeg_GetFormat( AVCodecContext *p_context,
if( p_va != NULL )
vlc_va_Delete( p_va );
+ /* Profile and level informations are needed now.
+ * TODO: avoid code duplication with avcodec.c */
+ if( p_context->profile != FF_PROFILE_UNKNOWN)
+ p_dec->fmt_in.i_profile = p_context->profile;
+ if( p_context->level != FF_LEVEL_UNKNOWN)
+ p_dec->fmt_in.i_level = p_context->level;
+
p_va = vlc_va_New( VLC_OBJECT(p_dec), p_sys->i_codec_id, &p_dec->fmt_in );
if( p_va != NULL )
{
More information about the vlc-commits
mailing list