Revision 2be209b2 libavcodec/ac3enc.c

View differences:

libavcodec/ac3enc.c
36 36
typedef struct AC3EncodeContext {
37 37
    PutBitContext pb;
38 38

  
39
    unsigned int bitstream_id;
40
    unsigned int bitstream_mode;
39
    int bitstream_id;
40
    int bitstream_mode;
41 41

  
42 42
    int bit_rate;
43
    unsigned int sample_rate;
43
    int sample_rate;
44 44
    int sr_shift;
45
    unsigned int sr_code; /* frequency */
45
    int sr_code; /* frequency */
46 46

  
47
    unsigned int frame_size_min; /* minimum frame size in case rounding is necessary */
48
    unsigned int frame_size; /* current frame size in words */
49
    unsigned int frame_size_code;
50
    unsigned int bits_written;
51
    unsigned int samples_written;
47
    int frame_size_min; /* minimum frame size in case rounding is necessary */
48
    int frame_size; /* current frame size in words */
49
    int frame_size_code;
50
    int bits_written;
51
    int samples_written;
52 52

  
53 53
    int nb_all_channels;
54 54
    int nb_channels;
55 55
    int lfe;
56 56
    int lfe_channel;
57
    unsigned int channel_mode;
57
    int channel_mode;
58 58
    const uint8_t *channel_map;
59 59

  
60
    unsigned int chbwcod[AC3_MAX_CHANNELS];
60
    int chbwcod[AC3_MAX_CHANNELS];
61 61
    int nb_coefs[AC3_MAX_CHANNELS];
62 62

  
63 63
    /* bitrate allocation control */

Also available in: Unified diff