You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/ffv1enc_template: Be a bit more verbose on error
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -37,12 +37,12 @@ RENAME(encode_line)(FFV1Context *f, FFV1SliceContext *sc,
|
|||||||
|
|
||||||
if (ac != AC_GOLOMB_RICE) {
|
if (ac != AC_GOLOMB_RICE) {
|
||||||
if (c->bytestream_end - c->bytestream < w * 35) {
|
if (c->bytestream_end - c->bytestream < w * 35) {
|
||||||
av_log(logctx, AV_LOG_ERROR, "encoded frame too large\n");
|
av_log(logctx, AV_LOG_ERROR, "encoded Range Coder frame too large\n");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (put_bytes_left(&sc->pb, 0) < w * 4) {
|
if (put_bytes_left(&sc->pb, 0) < w * 4) {
|
||||||
av_log(logctx, AV_LOG_ERROR, "encoded frame too large\n");
|
av_log(logctx, AV_LOG_ERROR, "encoded Golomb Rice frame too large\n");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user