~ubuntu-branches/debian/sid/mplayer/sid

« back to all changes in this revision

Viewing changes to libavcodec/noise_bsf.c

  • Committer: Bazaar Package Importer
  • Author(s): A Mennucc1
  • Date: 2009-03-23 10:05:45 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090323100545-x8h79obawnnte7kk
Tags: 1.0~rc2+svn20090303-5
debian/control : move docbook-xml,docbook-xsl,xsltproc from 
Build-Depends-Indep to Build-Depends, since they are needed to run
configure

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
static int noise(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args,
25
25
                     uint8_t **poutbuf, int *poutbuf_size,
26
26
                     const uint8_t *buf, int buf_size, int keyframe){
27
 
    int amount= args ? atoi(args) : 10000;
28
27
    unsigned int *state= bsfc->priv_data;
 
28
    int amount= args ? atoi(args) : (*state % 10001+1);
29
29
    int i;
30
30
 
31
31
    *poutbuf= av_malloc(buf_size + FF_INPUT_BUFFER_PADDING_SIZE);