~ubuntu-branches/debian/experimental/ffmpeg/experimental

« back to all changes in this revision

Viewing changes to libavcodec/rv30.c

  • Committer: Package Import Robot
  • Author(s): Andreas Cadhalpun, Andreas Cadhalpun, Carl Eugen Hoyos
  • Date: 2015-07-09 23:42:42 UTC
  • mfrom: (0.1.17) (3.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20150709234242-mf3vk9qgvcv9zh3s
Tags: 7:2.7.1-2
[ Andreas Cadhalpun ]
* Build libavcodec-extra flavor.
* Add encdec-extra autopkgtest for the libavcodec-extra flavor.
* Add lib*-dev and libav-tools-links packages.
* Drop README.Debian.
* Remove bogus apng-ffm autopkg test.
* Explicitly build-depend on liblzma-dev used by the tiff decoder.
* Use the pkg-multimedia repository for the Vcs links.
* Use the plain lib*-dev packages for the test dependencies.
* Disable libssh on sparc due to #790067.
* Remove temporary gdb dependency on sparc64.
* Enable openal on sparc64.

[ Carl Eugen Hoyos ]
* Disable x265 on alpha due to #789807.

Show diffs side-by-side

added added

removed removed

Lines of Context:
259
259
    RV34DecContext *r = avctx->priv_data;
260
260
    int ret;
261
261
 
 
262
    if (avctx->extradata_size < 2) {
 
263
        av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n");
 
264
        return AVERROR(EINVAL);
 
265
    }
262
266
    r->rv30 = 1;
263
267
    if ((ret = ff_rv34_decode_init(avctx)) < 0)
264
268
        return ret;
265
 
    if(avctx->extradata_size < 2){
266
 
        av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n");
267
 
        return -1;
268
 
    }
269
269
 
270
270
    r->max_rpr = avctx->extradata[1] & 7;
271
271
    if(avctx->extradata_size < 2*r->max_rpr + 8){