"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libavcodec/mss12.c" between
libav-11.7.tar.gz and libav-11.8.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.

mss12.c  (libav-11.7):mss12.c  (libav-11.8)
skipping to change at line 591 skipping to change at line 591
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
avctx->coded_width = AV_RB32(avctx->extradata + 20); avctx->coded_width = AV_RB32(avctx->extradata + 20);
avctx->coded_height = AV_RB32(avctx->extradata + 24); avctx->coded_height = AV_RB32(avctx->extradata + 24);
if (avctx->coded_width > 4096 || avctx->coded_height > 4096) { if (avctx->coded_width > 4096 || avctx->coded_height > 4096) {
av_log(avctx, AV_LOG_ERROR, "Frame dimensions %dx%d too large", av_log(avctx, AV_LOG_ERROR, "Frame dimensions %dx%d too large",
avctx->coded_width, avctx->coded_height); avctx->coded_width, avctx->coded_height);
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
if (avctx->width || avctx->height) {
if (avctx->width <= 0 || avctx->width > avctx->coded_width ||
avctx->height <= 0 || avctx->height > avctx->coded_height) {
av_log(avctx, AV_LOG_ERROR, "Invalid display dimensions\n");
return AVERROR_INVALIDDATA;
}
} else {
avctx->width = avctx->coded_width;
avctx->height = avctx->coded_height;
}
av_log(avctx, AV_LOG_DEBUG, "Encoder version %"PRIu32".%"PRIu32"\n", av_log(avctx, AV_LOG_DEBUG, "Encoder version %"PRIu32".%"PRIu32"\n",
AV_RB32(avctx->extradata + 4), AV_RB32(avctx->extradata + 8)); AV_RB32(avctx->extradata + 4), AV_RB32(avctx->extradata + 8));
if (version != AV_RB32(avctx->extradata + 4) > 1) { if (version != AV_RB32(avctx->extradata + 4) > 1) {
av_log(avctx, AV_LOG_ERROR, av_log(avctx, AV_LOG_ERROR,
"Header version doesn't match codec tag\n"); "Header version doesn't match codec tag\n");
return -1; return -1;
} }
c->free_colours = AV_RB32(avctx->extradata + 48); c->free_colours = AV_RB32(avctx->extradata + 48);
 End of changes. 1 change blocks. 
0 lines changed or deleted 10 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS