~ubuntu-branches/ubuntu/lucid/ffmpeg/lucid-updates

« back to all changes in this revision

Viewing changes to libavcodec/svq3.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-03-13 09:18:28 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090313091828-n4ktby5eca487uhv
Tags: 3:0.svn20090303-1ubuntu1+unstripped1
merge from ubuntu.jaunty branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
724
724
            memcpy((uint8_t *) &s->gb.buffer[get_bits_count(&s->gb) >> 3],
725
725
                   &s->gb.buffer[s->gb.size_in_bits >> 3], (length - 1));
726
726
        }
 
727
        skip_bits_long(&s->gb, 0);
727
728
    }
728
729
 
729
730
    if ((i = svq3_get_ue_golomb(&s->gb)) == INVALID_VLC || i >= 3){
775
776
    return 0;
776
777
}
777
778
 
778
 
static int svq3_decode_init(AVCodecContext *avctx)
 
779
static av_cold int svq3_decode_init(AVCodecContext *avctx)
779
780
{
780
781
    MpegEncContext *const s = avctx->priv_data;
781
782
    H264Context *const h = avctx->priv_data;
1050
1051
    svq3_decode_frame,
1051
1052
    CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_DELAY,
1052
1053
    .long_name = NULL_IF_CONFIG_SMALL("Sorenson Vector Quantizer 3"),
 
1054
    .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUVJ420P, PIX_FMT_NONE},
1053
1055
};