547 |
#endif |
#endif |
548 |
|
|
549 |
if (dec->time_inc_resolution > 0) { |
if (dec->time_inc_resolution > 0) { |
550 |
dec->time_inc_bits = log2bin(dec->time_inc_resolution-1); |
dec->time_inc_bits = MAX(log2bin(dec->time_inc_resolution-1), 1); |
551 |
} else { |
} else { |
552 |
#if 0 |
#if 0 |
553 |
dec->time_inc_bits = 0; |
dec->time_inc_bits = 0; |
1272 |
} |
} |
1273 |
|
|
1274 |
/* xvid id */ |
/* xvid id */ |
|
#define XVID_ID "XviD" XVID_BS_VERSION |
|
1275 |
{ |
{ |
1276 |
char xvid_id_string[100]; |
const char xvid_user_format[] = "XviD%04d%c"; |
1277 |
|
char xvid_user_data[100]; |
1278 |
if (frame->vop_flags & XVID_VOP_CARTOON) |
sprintf(xvid_user_data, |
1279 |
sprintf(xvid_id_string, "%sC", XVID_ID); |
xvid_user_format, |
1280 |
else |
XVID_BS_VERSION, |
1281 |
sprintf(xvid_id_string, "%s", XVID_ID); |
(frame->vop_flags & XVID_VOP_CARTOON)?'C':'\0'); |
1282 |
|
BitstreamWriteUserData(bs, xvid_user_data, strlen(xvid_user_data)); |
|
BitstreamWriteUserData(bs, xvid_id_string, strlen(xvid_id_string)); |
|
1283 |
} |
} |
1284 |
} |
} |
1285 |
|
|