diff options
author | jstebbins <[email protected]> | 2015-08-24 15:40:24 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-08-24 15:40:24 +0000 |
commit | d078868681a1892e1e67050ebafa1066efc45f73 (patch) | |
tree | 5fb026271a9c6dc189dc33c229ef14bd163239fb /libhb/hb.c | |
parent | c20a45fac6c5a4a3052f103e8d1070aec152b259 (diff) |
cropscale: prevent crash when scale dimensions too small
This will result in no video in the output file, but in such cases, this
might actually be desirable. Scaling to such small dimensions is often
used simply to re-encode audio.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7412 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.c')
-rw-r--r-- | libhb/hb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/hb.c b/libhb/hb.c index ab61ff74e..e8418e741 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -240,7 +240,7 @@ hb_sws_get_context(int srcW, int srcH, enum AVPixelFormat srcFormat, 1 << 16 ); // saturation if (sws_init_context(ctx, NULL, NULL) < 0) { - fprintf(stderr, "Cannot initialize resampling context\n"); + hb_error("Cannot initialize resampling context"); sws_freeContext(ctx); ctx = NULL; } |