~ubuntu-branches/ubuntu/wily/ffmpeg/wily

« back to all changes in this revision

Viewing changes to libavcodec/vp8.c

  • Committer: Package Import Robot
  • Author(s): Andreas Cadhalpun, Reinhard Tartler, Andreas Cadhalpun
  • Date: 2015-07-20 10:23:49 UTC
  • mfrom: (27.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20150720102349-prx70m0x0su1xek6
Tags: 7:2.7.2-1
[ Reinhard Tartler ]
* Add myself to uploaders.
* Merge qt-faststart back into 'ffmpeg'.

[ Andreas Cadhalpun ]
* Upload to unstable.
* Import new upstream bugfix release 2.7.2.
   - Make -xerror with multi-threading more robust. (Closes: #780344)
* Enable frei0r, opencv, x264, x265 on x32 and x265 on sparc64.
* Disable x264 on sparc64 due to #792921.

Show diffs side-by-side

added added

removed removed

Lines of Context:
639
639
    int width  = s->avctx->width;
640
640
    int height = s->avctx->height;
641
641
 
 
642
    if (buf_size < 3) {
 
643
        av_log(s->avctx, AV_LOG_ERROR, "Insufficent data (%d) for header\n", buf_size);
 
644
        return AVERROR_INVALIDDATA;
 
645
    }
 
646
 
642
647
    s->keyframe  = !(buf[0] & 1);
643
648
    s->profile   =  (buf[0]>>1) & 7;
644
649
    s->invisible = !(buf[0] & 0x10);
2689
2694
    VP8Context *s = avctx->priv_data;
2690
2695
    int i;
2691
2696
 
 
2697
    if (!s)
 
2698
        return 0;
 
2699
 
2692
2700
    vp8_decode_flush_impl(avctx, 1);
2693
2701
    for (i = 0; i < FF_ARRAY_ELEMS(s->frames); i++)
2694
2702
        av_frame_free(&s->frames[i].tf.f);