int64_t picon_h = edit->picon_h();
-// Don't draw video if picon is bigger than edit
- if(picon_w > edit_w) return;
+// Don't draw video if picon is empty or bigger than edit
+ if( picon_w <= 0 || picon_w > edit_w ) return;
// pixels spanned by a frame
double frame_w = edit->frame_w();