+ /* In MPEG-4 studio mode look for a new slice startcode
+ * and decode slice header */
+ if(s->codec_id==AV_CODEC_ID_MPEG4 && s->studio_profile) {
+ align_get_bits(&s->gb);
+
+ while (get_bits_left(&s->gb) >= 32 && show_bits_long(&s->gb, 32) != SLICE_START_CODE) {
+ get_bits(&s->gb, 8);
+ }
+
+ if (show_bits_long(&s->gb, 32) == SLICE_START_CODE)
+ return get_bits_count(&s->gb);
+ else
+ return -1;
+ }
+