Revision e692fd60

View differences:

libavformat/nut.c
1 1
/*
2
 * NUT (de)muxer based on initial draft
2
 * "NUT" Container Format muxer and demuxer (DRAFT-20031003)
3 3
 * Copyright (c) 2003 Alex Beregszaszi
4 4
 *
5 5
 * This library is free software; you can redistribute it and/or
......
18 18
 *
19 19
 * NUT DRAFT can be found in MPlayer CVS at DOCS/tech/mpcf.txt
20 20
 *
21
 * Compatible with draft version 20030906
21
 * AND http://people.fsn.hu/~alex/nut/ (TeX, pdf, ps, dvi, ..)
22 22
 *
23 23
 */
24 24

  
25 25
/*
26 26
 * TODO:
27 27
 * - checksumming
28
 * - correct timestamp handling
28
 * - optimal timestamp handling
29 29
 * - index writing
30 30
 * - info and index packet reading support
31 31
 * - startcode searching for broken streams
32 32
 * - subpacket support
33
 * - handling of codec specific headers
34 33
*/
35 34

  
36 35
//#define DEBUG 1
......
92 91
    for (i = 0; i < len && i < maxlen; i++)
93 92
	data[i] = get_byte(bc);
94 93
    /* skip remaining bytes */
95
    for (; i < len; i++)
96
        get_byte(bc);
94
    url_fskip(bc, len-i);
97 95

  
98 96
    return 0;
99 97
}
......
106 104
    for (i = 0; i < len && i <= 4; i++)
107 105
        val |= get_byte(bc) << (i * 8);
108 106
    /* skip remaining bytes */
109
    for (; i < len; i++)
110
        get_byte(bc);
107
    url_fskip(bc, len-i);
111 108

  
112 109
    return val;
113 110
}
......
474 471
	get_v(bc); /* FIXME: msb timestamp base */
475 472
	get_v(bc); /* shuffle type */
476 473
	get_byte(bc); /* flags */
477
	
478
	get_v(bc); /* FIXME: codec specific data headers */
474

  
475
	/* codec specific data headers */
476
	while(get_v(bc) != 0)
477
	    url_fskip(bc, get_v(bc));
479 478
	
480 479
	if (class == 0) /* VIDEO */
481 480
	{

Also available in: Unified diff