472 |
if (BitstreamGetBit(bs)) // is_visual_object_identified |
if (BitstreamGetBit(bs)) // is_visual_object_identified |
473 |
{ |
{ |
474 |
visobj_ver_id = BitstreamGetBits(bs, 4); // visual_object_ver_id |
visobj_ver_id = BitstreamGetBits(bs, 4); // visual_object_ver_id |
475 |
DPRINTF(DPRINTF_HEADER,"ver_id %i", vol_ver_id); |
DPRINTF(DPRINTF_HEADER,"visobj_ver_id %i", visobj_ver_id); |
476 |
BitstreamSkip(bs, 3); // visual_object_priority |
BitstreamSkip(bs, 3); // visual_object_priority |
477 |
} else { |
} else { |
478 |
visobj_ver_id = 1; |
visobj_ver_id = 1; |
1255 |
|
|
1256 |
BitstreamPutBit(bs, 0); // scalability |
BitstreamPutBit(bs, 0); // scalability |
1257 |
|
|
1258 |
|
/* fake divx5 id, to ensure compatibility with divx5 decoder */ |
1259 |
|
#define DIVX5_ID "DivX501b481p" |
1260 |
|
if (pParam->max_bframes > 0 && (pParam->global & XVID_GLOBAL_PACKED)) { |
1261 |
|
BitstreamWriteUserData(bs, DIVX5_ID, strlen(DIVX5_ID)); |
1262 |
|
} |
1263 |
|
|
1264 |
|
/* xvid id */ |
1265 |
|
#define XVID_ID "XviD" XVID_BS_VERSION |
1266 |
|
BitstreamWriteUserData(bs, XVID_ID, strlen(XVID_ID)); |
1267 |
} |
} |
1268 |
|
|
1269 |
|
|