[MPlayer-cvslog] r34805 - trunk/libmpcodecs/vf_uspp.c
reimar
subversion at mplayerhq.hu
Sat Mar 10 11:23:43 CET 2012
Author: reimar
Date: Sat Mar 10 11:23:42 2012
New Revision: 34805
Log:
Fix possible crash when using -vf uspp,format=y8
i.e. the destination format is Y8.
Modified:
trunk/libmpcodecs/vf_uspp.c
Modified: trunk/libmpcodecs/vf_uspp.c
==============================================================================
--- trunk/libmpcodecs/vf_uspp.c Fri Mar 9 13:21:51 2012 (r34804)
+++ trunk/libmpcodecs/vf_uspp.c Sat Mar 10 11:23:42 2012 (r34805)
@@ -201,6 +201,8 @@ static void filter(struct vf_priv_s *p,
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);
}
}
More information about the MPlayer-cvslog
mailing list