[vlc-devel] commit: avcodec decoder: export profile/level at open ( Rafaël Carré )
git version control
git at videolan.org
Fri Jan 29 14:35:05 CET 2010
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Fri Jan 29 14:34:30 2010 +0100| [3dd2478ce13bb16c5f3f55518b057f21d354ef32] | committer: Rafaël Carré
avcodec decoder: export profile/level at open
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3dd2478ce13bb16c5f3f55518b057f21d354ef32
---
modules/codec/avcodec/avcodec.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/modules/codec/avcodec/avcodec.c b/modules/codec/avcodec/avcodec.c
index 147d09d..afd173e 100644
--- a/modules/codec/avcodec/avcodec.c
+++ b/modules/codec/avcodec/avcodec.c
@@ -321,7 +321,14 @@ static int OpenDecoder( vlc_object_t *p_this )
i_result = VLC_EGENERIC;
}
- if( i_result == VLC_SUCCESS ) p_dec->p_sys->i_cat = i_cat;
+ if( i_result == VLC_SUCCESS )
+ {
+ p_dec->p_sys->i_cat = i_cat;
+ 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;
+ }
return i_result;
}
More information about the vlc-devel
mailing list