20 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
21 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 |
* |
* |
23 |
* $Id: bitstream.c,v 1.39.2.11 2003-06-09 13:51:34 edgomez Exp $ |
* $Id: bitstream.c,v 1.39.2.12 2003-06-09 19:42:18 edgomez Exp $ |
24 |
* |
* |
25 |
****************************************************************************/ |
****************************************************************************/ |
26 |
|
|
1022 |
|
|
1023 |
DPRINTF(XVID_DEBUG_STARTCODE, "<user_data>: %s\n", tmp); |
DPRINTF(XVID_DEBUG_STARTCODE, "<user_data>: %s\n", tmp); |
1024 |
|
|
1025 |
|
/* read xvid bitstream version */ |
1026 |
|
if(strncmp(tmp, "XviD", 4) == 0) { |
1027 |
|
sscanf(tmp, "XviD%d", &dec->bs_version); |
1028 |
|
DPRINTF(XVID_DEBUG_HEADER, "xvid bitstream version=%i", dec->bs_version); |
1029 |
|
} |
1030 |
|
|
1031 |
/* divx detection */ |
/* divx detection */ |
1032 |
i = sscanf(tmp, "DivX%dBuild%d%c", &version, &build, &packed); |
i = sscanf(tmp, "DivX%dBuild%d%c", &version, &build, &packed); |
1033 |
if (i < 2) |
if (i < 2) |