~ubuntu-branches/ubuntu/utopic/ffmpeg-debian/utopic

« back to all changes in this revision

Viewing changes to libavcodec/libschroedingerdec.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-01-20 09:20:53 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090120092053-izz63p40hc98qfgp
Tags: 3:0.svn20090119-1ubuntu1
* merge from debian. LP: #318501
* new version fixes CVE-2008-3230, LP: #253767

Show diffs side-by-side

added added

removed removed

Lines of Context:
235
235
    do {
236
236
        if ((enc_buf = FfmpegFindNextSchroParseUnit(&parse_ctx))) {
237
237
            /* Push buffer into decoder. */
 
238
            if (SCHRO_PARSE_CODE_IS_PICTURE(enc_buf->data[4]) &&
 
239
                SCHRO_PARSE_CODE_NUM_REFS(enc_buf->data[4]) > 0)
 
240
                avccontext->has_b_frames = 1;
238
241
            state = schro_decoder_push (decoder, enc_buf);
239
242
            if (state == SCHRO_DECODER_FIRST_ACCESS_UNIT)
240
243
                  libschroedinger_handle_first_access_unit(avccontext);