# HG changeset patch # User reimar # Date 1331375022 0 # Node ID 12a8828549cd44524c90fb0f0dc346020c86fcdf # Parent 0b33e974c79aac4de22bb757f8777f2bd3290e70 Fix possible crash when using -vf uspp,format=y8 i.e. the destination format is Y8. diff -r 0b33e974c79a -r 12a8828549cd libmpcodecs/vf_uspp.c --- a/libmpcodecs/vf_uspp.c Fri Mar 09 12:21:51 2012 +0000 +++ b/libmpcodecs/vf_uspp.c Sat Mar 10 10:23:42 2012 +0000 @@ -201,6 +201,8 @@ for(j=0; j<3; j++){ int is_chroma= !!j; + if (!dst[j]) + continue; // HACK avoid crash for Y8 colourspace store_slice_c(dst[j], p->temp[j], dst_stride[j], p->temp_stride[j], width>>is_chroma, height>>is_chroma, 8-p->log2_count); } }