~ubuntu-branches/ubuntu/trusty/gst-libav1.0/trusty

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/libavcodec/h264_cavlc.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge, Iain Lane, Sebastian Dröge
  • Date: 2014-02-09 11:42:06 UTC
  • mfrom: (13.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20140209114206-ksn1eu97d9pt2iza
Tags: 1.2.3-1
[ Iain Lane ]
* Drop ltmain-as-needed patch and do the same with dh_autoreconf
  --as-needed.

[ Sebastian Dröge ]
* New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
770
770
 
771
771
        // We assume these blocks are very rare so we do not optimize it.
772
772
        align_get_bits(&s->gb);
 
773
        if (get_bits_left(&s->gb) < mb_size) {
 
774
            av_log(s->avctx, AV_LOG_ERROR, "Not enough data for an intra PCM block.\n");
 
775
            return AVERROR_INVALIDDATA;
 
776
        }
773
777
 
774
778
        // The pixels are stored in the same order as levels in h->mb array.
775
779
        for(x=0; x < mb_size; x++){