~ubuntu-branches/ubuntu/feisty/avidemux/feisty

« back to all changes in this revision

Viewing changes to adm_lavcodec/dv.c

  • Committer: Bazaar Package Importer
  • Author(s): Christian Marillat
  • Date: 2005-05-25 13:02:29 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050525130229-jw94cav0yhmg7vjw
Tags: 1:2.0.40-0.0
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
        /* NOTE: as a trick, we use the fact the no codes are unused
145
145
           to accelerate the parsing of partial codes */
146
146
        init_vlc(&dv_vlc, TEX_VLC_BITS, j, 
147
 
                 new_dv_vlc_len, 1, 1, new_dv_vlc_bits, 2, 2);
 
147
                 new_dv_vlc_len, 1, 1, new_dv_vlc_bits, 2, 2, 0);
148
148
 
149
149
        dv_rl_vlc = av_malloc(dv_vlc.table_size * sizeof(RL_VLC_ELEM));
150
150
        if (!dv_rl_vlc) {
394
394
            init_get_bits(&gb, buf_ptr, last_index);
395
395
            
396
396
            /* get the dc */
397
 
            dc = get_bits(&gb, 9);
398
 
            dc = (dc << (32 - 9)) >> (32 - 9);
 
397
            dc = get_sbits(&gb, 9);
399
398
            dct_mode = get_bits1(&gb);
400
399
            mb->dct_mode = dct_mode;
401
400
            mb->scan_table = s->dv_zigzag[dct_mode];
932
931
    s->sys = dv_codec_profile(c);
933
932
    if (!s->sys)
934
933
        return -1;
935
 
    
 
934
    if(buf_size < s->sys->frame_size)
 
935
        return -1;
 
936
 
936
937
    c->pix_fmt = s->sys->pix_fmt;
937
938
    s->picture = *((AVFrame *)data);
938
939