Mercurial > mplayer.hg
changeset 34717:12a8828549cd
Fix possible crash when using -vf uspp,format=y8
i.e. the destination format is Y8.
author | reimar |
---|---|
date | Sat, 10 Mar 2012 10:23:42 +0000 |
parents | 0b33e974c79a |
children | 8ef6e54892fa |
files | libmpcodecs/vf_uspp.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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); } }