comparison h264.c @ 10829:46a247e54d6e libavcodec

Export get_slice_type() as ff_h264_get_slice_type(). Patch by Laurent Aimar <fenrir at videolan dot org>.
author ramiro
date Sat, 09 Jan 2010 16:20:41 +0000
parents 59c35482189e
children e5905bfa625d
comparison
equal deleted inserted replaced
10828:d0657e337f91 10829:46a247e54d6e
4153 } 4153 }
4154 4154
4155 return 0; 4155 return 0;
4156 } 4156 }
4157 4157
4158 int ff_h264_get_slice_type(H264Context *h)
4159 {
4160 switch (h->slice_type) {
4161 case FF_P_TYPE: return 0;
4162 case FF_B_TYPE: return 1;
4163 case FF_I_TYPE: return 2;
4164 case FF_SP_TYPE: return 3;
4165 case FF_SI_TYPE: return 4;
4166 default: return -1;
4167 }
4168 }
4169
4158 /** 4170 /**
4159 * 4171 *
4160 */ 4172 */
4161 static inline int get_level_prefix(GetBitContext *gb){ 4173 static inline int get_level_prefix(GetBitContext *gb){
4162 unsigned int buf; 4174 unsigned int buf;