"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libavcodec/pictordec.c" between
libav-12.2.tar.gz and libav-12.3.tar.gz

About: libav provides cross-platform tools ("avconv") and libraries to convert, manipulate and stream a wide range of multimedia (audio and video) formats and protocols.

pictordec.c  (libav-12.2):pictordec.c  (libav-12.3)
skipping to change at line 143 skipping to change at line 143
esize = bytestream2_get_le16(&s->g); esize = bytestream2_get_le16(&s->g);
if (bytestream2_get_bytes_left(&s->g) < esize) if (bytestream2_get_bytes_left(&s->g) < esize)
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} else { } else {
etype = -1; etype = -1;
esize = 0; esize = 0;
} }
avctx->pix_fmt = AV_PIX_FMT_PAL8; avctx->pix_fmt = AV_PIX_FMT_PAL8;
if (s->width != avctx->width && s->height != avctx->height) { if (s->width != avctx->width || s->height != avctx->height) {
ret = ff_set_dimensions(avctx, s->width, s->height); ret = ff_set_dimensions(avctx, s->width, s->height);
if (ret < 0) if (ret < 0)
return ret; return ret;
} }
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) { if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return ret; return ret;
} }
memset(frame->data[0], 0, s->height * frame->linesize[0]); memset(frame->data[0], 0, s->height * frame->linesize[0]);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)