comparison msmpeg4.c @ 2464:ab390f13c7f5 libavcodec

dont duplicate decode012()
author michael
date Tue, 25 Jan 2005 01:40:58 +0000
parents 26560d4fdb1f
children 5565203c95ee
comparison
equal deleted inserted replaced
2463:9baa47d8297b 2464:ab390f13c7f5
1191 } 1191 }
1192 1192
1193 s->slice_height= s->mb_height; //to avoid 1/0 if the first frame isnt a keyframe 1193 s->slice_height= s->mb_height; //to avoid 1/0 if the first frame isnt a keyframe
1194 1194
1195 return 0; 1195 return 0;
1196 }
1197
1198 static int decode012(GetBitContext *gb)
1199 {
1200 int n;
1201 n = get_bits1(gb);
1202 if (n == 0)
1203 return 0;
1204 else
1205 return get_bits1(gb) + 1;
1206 } 1196 }
1207 1197
1208 int msmpeg4_decode_picture_header(MpegEncContext * s) 1198 int msmpeg4_decode_picture_header(MpegEncContext * s)
1209 { 1199 {
1210 int code; 1200 int code;